Function at 0x5042d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x44
mov esi, ecx
mov eax, dword [0x567b10]
xor eax, esp
mov dword [esp + 0x40], eax
lea eax, [esp + 8]
push eax
call fcn.004fb460
mov ebx, dword [esi + 0x60]
xor edi, edi
mov eax, ebx
cmp ebx, 0xc
jne 0x50430e
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.004fb460
mov eax, dword [esi + 0x60]
mov edi, 1
cmp eax, 0x15
jne 0x504362
mov edi, dword [esi + 0x68]
mov dword [esp], esi
mov eax, dword [esi + 0x70]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
test eax, eax
je 0x504532
cmp edi, 0xf
jbe 0x50451a
sub esp, 0xc
mov cl, byte [esp + 0x18]
mov byte [esp + 4], cl
mov dword [esp + 8], eax
mov dword [esp], edi
lea ecx, [esp + 0x34]
call fcn.00404140
jmp 0x504532
mov ebx, dword [esi + 0xc]
mov eax, dword [esi + 0x64]
mov dword [ebx + 0xdc], eax
mov dword [ebx + 0xe0], 0x35c
lea eax, [ebx + 0xc4]
cmp dword [ebx + 0xd8], 0x10
jb 0x504389
mov eax, dword [eax]
mov dword [ebx + 0xd4], 0
mov byte [eax], 0
lea eax, [ebx + 0xe4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], ebx
mov word [esp + 0x18], 1
mov byte [ebx + 0xe4], 0
mov dword [ebx + 0x20c], 0
mov ecx, dword [ebx + 0x278]
test ecx, ecx
je 0x50446e
mov dword [esp + 4], edi
mov dword [esp], esi
mov ebp, dword [ebx + 0x274]
imul edi, ecx, 0x34
jmp 0x504414
push esi
push ecx
call fcn.00533ac0
add esp, 8
mov dword [ebp + edi - 0xc], 0
mov dword [ebp + edi - 8], 0xf
mov byte [ebp + edi - 0x1c], 0
add edi, 0xffffffcc
je 0x504446
mov eax, dword [ebp + edi - 8]
cmp eax, 0x10
jb 0x5043fa
mov ecx, dword [ebp + edi - 0x1c]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x5043f0
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x504723
add eax, 0x24
mov esi, eax
mov ecx, edx
jmp 0x5043f0
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x278], 0
test eax, eax
mov esi, dword [esp]
mov edi, dword [esp + 4]
jne 0x504478
mov ecx, dword [esp + 0x10]
call fcn.00454700
mov dword [esp + 0xc], eax
jmp 0x504478
mov dword [ebx + 0x278], 0
movzx ecx, byte [eax]
mov byte [eax + ecx + 1], 2
mov eax, dword [esp + 0xc]
movzx ecx, byte [eax]
mov edx, ecx
add dl, 1
mov byte [eax], dl
mov dword [eax + ecx*4 + 0xc], edi
mov eax, dword [esp + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
call fcn.004e8a20
cmp byte [esp + 0x18], 0
je 0x5044d1
mov ecx, dword [esp + 0x14]
movzx eax, byte [esp + 0x19]
push eax
call fcn.0045a620
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0
mov edi, dword [esp + 0xc]
test edi, edi
je 0x5046dc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5046dc
cmp eax, edi
ja 0x5046cc
lea ecx, [eax + 0x2d40]
cmp ecx, edi
jb 0x5046cc
mov ecx, dword [eax + 0x2d80]
lea edx, [ecx + 1]
mov dword [eax + 0x2d80], edx
mov dword [eax + ecx*4 + 0x2d40], edi
jmp 0x5046dc
mov dword [esp + 0x38], edi
lea ecx, [esp + 0x28]
push edi
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esp + edi + 0x28], 0
lea ebp, [esp + 0xc]
mov esi, dword [esp]
mov ecx, esi
push ebp
call fcn.004fb460
mov eax, dword [esi + 0x78]
mov dword [esp], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov esi, dword [esp + 0x38]
cmp dword [esp + 0x3c], 0xf
jbe 0x5045a2
mov eax, dword [esp + 0x28]
cmp esi, 0xf
jbe 0x5045ab
mov dword [esp + 4], eax
mov eax, esi
or eax, 0xf
cmp eax, 0x7fffffff
mov edi, 0x7fffffff
cmovb edi, eax
cmp edi, 0xfff
jb 0x5045ba
lea eax, [edi + 0x24]
push eax
call fcn.00533f15
add esp, 4
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x5045c6
lea eax, [esp + 0x28]
cmp esi, 0xf
ja 0x50456b
movups xmm0, xmmword [eax]
movups xmmword [esp + 0xc], xmm0
mov edi, 0xf
jmp 0x5045db
lea eax, [edi + 1]
push eax
call fcn.00533f15
add esp, 4
mov dword [esp + 0xc], eax
lea ecx, [esi + 1]
push ecx
push dword [esp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp ebx, 0xc
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
sete byte [esp + 0x24]
mov ebx, dword [esp]
mov edx, dword [ebx + 0x4c4]
lea eax, [edx + 1]
cmp eax, dword [ebx + 0x4c8]
ja 0x5046f3
mov eax, dword [ebx + 0x4c0]
mov ecx, dword [ebx + 0x4c4]
lea edx, [ecx + ecx*8]
lea edx, [edx + edx*2]
add edx, ecx
mov dword [eax + edx + 0x10], 0
mov dword [eax + edx + 0x14], 0
movups xmm0, xmmword [ebp]
movups xmmword [eax + edx], xmm0
movsd xmm0, qword [ebp + 0x10]
movsd qword [eax + edx + 0x10], xmm0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0xf
mov byte [ebp], 0
mov cl, byte [ebp + 0x18]
mov byte [eax + edx + 0x18], cl
add dword [ebx + 0x4c4], 1
mov eax, dword [esp + 0x20]
cmp eax, 0x10
jb 0x504694
mov ecx, dword [esp + 0xc]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x50468a
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x504723
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00533ac0
add esp, 8
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x5046e0
mov ecx, dword [esp + 0x28]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x5046c0
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x504723
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00533ac0
add esp, 8
jmp 0x5046e0
mov ecx, edi
call fcn.00454310
push edi
call fcn.00533f45
add esp, 4
mov byte [esi + 0x21], 1
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00533ace
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebx + 0x4c0]
mov ecx, dword [esi]
lea edi, [edx + edx*8]
lea edi, [edi + edi*2]
add edi, edx
add edi, ecx
lea ebp, [esp + 0xc]
cmp edi, ebp
seta dl
cmp ecx, ebp
ja 0x504716
test dl, dl
jne 0x504729
mov ecx, esi
push eax
call fcn.00505750
jmp 0x504603
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea ebp, [esp + 0xc]
sub ebp, ecx
mov ecx, esi
push eax
call fcn.00505750
add ebp, dword [esi]
jmp 0x504603