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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
or dword [esp + 0x34], 0xffffffff
mov eax, ecx
mov dword [esp + 0xc], eax
push ebx
push esi
mov ecx, dword [eax + 0xfc]
mov eax, dword [eax]
mov dword [esp + 0x38], ecx
xor ecx, ecx
push edi
mov dword [esp + 0x30], edx
test byte [eax + 0x50], 1
mov dword [esp + 0x38], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x49d84e
imul eax, dword [ebp + 8], 0x48
mov ecx, edx
xor edi, edi
mov ebx, dword [ecx + 0x20]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], eax
mov edx, dword [eax + ebx + 0x34]
mov dword [esp + 0x50], edx
mov edx, dword [eax + ebx + 0x1c]
mov dword [esp + 0x2c], edx
cmp dword [ecx + 0x44], edi
jne 0x49d84e
cmp dword [edx + 0x44], edi
jne 0x49d84e
mov eax, dword [edx + 0x3c]
mov esi, dword [edx + 0x20]
test eax, eax
je 0x49d7fe
cmp dword [ecx + 0x3c], edi
jne 0x49d84e
cmp dword [eax + 0x10], edi
jne 0x49d84e
test dword [ecx + 4], 0x100
je 0x49d80b
test eax, eax
jne 0x49d84e
cmp dword [esi], edi
je 0x49d84e
test byte [edx + 4], 1
jne 0x49d84e
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x49d825
cmp dword [ebx], 1
jg 0x49d84e
test edi, edi
jne 0x49d84e
cmp dword [ecx + 0x30], 0
je 0x49d831
cmp dword [edx + 0x30], 0
jne 0x49d84e
test edi, edi
je 0x49d83b
cmp dword [edx + 0x30], 0
jne 0x49d84e
test eax, eax
je 0x49d857
xor eax, eax
cmp dword [ecx + 0x24], eax
jne 0x49d84e
mov ecx, dword [ecx + 4]
and ecx, 1
je 0x49d85d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 4]
and ecx, 1
test dword [edx + 4], 0x2000
jne 0x49d84e
mov eax, dword [esp + 0x10]
lea edx, [eax + 0x2c]
add edx, ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], edx
mov dl, byte [edx]
test dl, 0x60
je 0x49d8a2
cmp dword [esi], 1
jg 0x49d84e
mov eax, dword [esi + 0x18]
cmp byte [eax + 0x2b], 1
je 0x49d84e
test ecx, ecx
jne 0x49d84e
test dl, 0x10
jne 0x49d84e
mov eax, dword [esp + 0x10]
xor edx, edx
inc edx
mov dword [esp + 0x38], edx
jmp 0x49d8a6
mov edx, dword [esp + 0x38]
cmp dword [ebp + 8], 0
jle 0x49d8b2
test byte [esi + 0x2c], 0x40
jne 0x49d84e
test dword [eax + ebx + 0x30], 0x100
je 0x49d8c6
mov eax, dword [eax + ebx + 0x4c]
cmp byte [eax + 0x12], 0
je 0x49d84e
mov esi, dword [esp + 0x2c]
xor eax, eax
cmp dword [esi + 0x34], eax
je 0x49da16
cmp dword [esi + 0x30], eax
jne 0x49d84e
test edi, edi
jne 0x49d84e
test ecx, ecx
jne 0x49d84e
test edx, edx
jne 0x49d84e
mov eax, esi
test byte [eax + 4], 9
jne 0x49d84e
mov edx, dword [eax + 0x34]
test edx, edx
je 0x49d912
cmp byte [eax], 0x87
jne 0x49d84e
mov ecx, dword [eax + 0x20]
cmp dword [ecx], 1
jl 0x49d84e
cmp dword [eax + 0x44], edi
jne 0x49d84e
cmp dword [ebp + 8], edi
jle 0x49d936
test byte [ecx + 0x2c], 0x40
jne 0x49d84e
mov eax, edx
test eax, eax
jne 0x49d8f8
mov edi, dword [esp + 0x30]
mov edx, dword [edi + 0x30]
test edx, edx
je 0x49d967
mov ecx, eax
cmp dword [edx], eax
jle 0x49d967
lea eax, [edx + 0x18]
xor ebx, ebx
cmp word [eax], bx
mov ebx, dword [esp + 0x24]
je 0x49d84e
inc ecx
add eax, 0x14
cmp ecx, dword [edx]
jl 0x49d950
test dword [edi + 4], 0x2000
jne 0x49d84e
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov dword [esp + 0x28], ecx
cmp dword [eax], ecx
jle 0x49d9c6
mov edi, ecx
mov ecx, dword [edi + eax + 8]
call fcn.0047bd32
mov byte [esp + 0xf], al
jmp 0x49d9a8
mov ecx, dword [esi + 0x1c]
mov ecx, dword [ecx + edi + 8]
call fcn.0047bd32
cmp al, byte [esp + 0xf]
jne 0x49d84e
mov esi, dword [esi + 0x34]
test esi, esi
jne 0x49d992
mov esi, dword [esp + 0x2c]
add edi, 0x14
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x28], ecx
mov eax, dword [esi + 0x1c]
cmp ecx, dword [eax]
jl 0x49d983
cmp dword [ebx], 1
mov edi, dword [esp + 0x18]
jle 0x49da1a
cmp dword [edi + 0x68], 0x1f4
jg 0x49d84e
mov ecx, dword [esp + 0x1c]
test dword [ecx + 0x50], 0x800000
jne 0x49d84e
mov eax, dword [edi + 0x28]
cdq
add eax, 1
adc edx, 0
shld edx, eax, 2
shl eax, 2
push edx
push eax
call fcn.00450fbe
mov dword [esp + 0x28], eax
pop ecx
pop ecx
test eax, eax
je 0x49da1a
mov ecx, dword [edi + 0x28]
mov dword [eax], ecx
jmp 0x49da1a
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + ebx + 0x10]
xor eax, eax
push eax
push eax
push eax
mov dword [edi + 0xfc], ecx
mov ecx, edi
push 0x15
pop edx
call fcn.00486715
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esp + 0x3c]
mov dword [edi + 0xfc], eax
mov edx, dword [ecx + ebx + 0xc]
mov edi, dword [ecx + ebx + 0x1c]
mov dword [esp + 0x3c], edi
test edx, edx
je 0x49da65
mov ecx, dword [esp + 0x1c]
call fcn.00450d17
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + ebx + 0x10]
test edx, edx
je 0x49da7a
mov ecx, dword [esp + 0x1c]
call fcn.00450d17
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + ebx + 0x14]
test edx, edx
je 0x49da8f
mov ecx, dword [esp + 0x1c]
call fcn.00450d17
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [ecx + ebx + 0xc], eax
mov dword [ecx + ebx + 0x10], eax
mov dword [ecx + ebx + 0x14], eax
mov dword [ecx + ebx + 0x1c], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x34], eax
test eax, eax
je 0x49dbb1
mov edx, dword [esp + 0x30]
jmp 0x49dab8
mov ecx, esi
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x30]
mov esi, dword [edx + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
mov edi, dword [ecx + eax + 0x18]
and dword [ecx + eax + 0x18], 0
xor eax, eax
mov ecx, dword [esp + 0x1c]
push eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [edx + 0x3c], eax
call fcn.0047d3f7
mov edx, dword [esp + 0x34]
pop ecx
mov ecx, eax
mov dword [esp + 0x2c], ecx
mov dword [edx + 0x3c], esi
mov esi, dword [esp + 0x10]
mov dword [edx + 0x30], ebx
mov ebx, dword [esp + 0x24]
mov byte [edx], 0x87
mov dword [esi + ebx + 0x18], edi
test ecx, ecx
jne 0x49db14
mov eax, dword [esp + 0x28]
jmp 0x49db95
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
inc dword [eax + 0x68]
mov eax, dword [eax + 0x68]
mov dword [ecx + 0x10], eax
test edi, edi
je 0x49db82
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x57], 0
jne 0x49db82
push dword [ebp + 8]
mov edx, edi
push dword [ecx + 0x20]
mov ecx, dword [esp + 0x20]
call fcn.0049d691
mov edx, dword [esp + 0x34]
xor eax, eax
pop ecx
pop ecx
xorps xmm0, xmm0
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x54]
movlpd qword [esp + 0x60], xmm0
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edi
mov dword [esp + 0x58], 0x49d730
mov dword [esp + 0x5c], fcn.004387b0
call fcn.00479a16
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov dword [ecx + 0x34], eax
test eax, eax
je 0x49db90
mov dword [eax + 0x38], ecx
mov dword [ecx + 0x38], edx
mov eax, ecx
mov dword [edx + 0x34], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x34], eax
test eax, eax
jne 0x49dab6
mov edi, dword [esp + 0x3c]
jmp 0x49dbb5
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x49dbc8
mov ecx, dword [esp + 0x1c]
mov edx, eax
call fcn.00450d17
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x57], 0
je 0x49dbde
mov dword [esi + ebx + 0x1c], edi
xor eax, eax
inc eax
jmp 0x49d850
mov edx, dword [esi + ebx + 0x18]
test edx, edx
je 0x49dc16
mov eax, dword [edx + 0x18]
cmp eax, 1
jne 0x49dc0a
mov eax, dword [esp + 0x18]
mov ecx, eax
push edx
mov edx, fcn.00487530
cmp dword [eax + 0x78], 0
cmovne ecx, dword [eax + 0x78]
call fcn.00499434
pop ecx
jmp 0x49dc0e
dec eax
mov dword [edx + 0x18], eax
xor eax, eax
mov dword [esi + ebx + 0x18], eax
jmp 0x49dc18
xor eax, eax
mov edx, dword [esp + 0x30]
mov ebx, edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x28], edx
mov esi, dword [edi + 0x20]
mov byte [esp + 0xf], al
mov eax, dword [esp + 0x44]
mov ecx, dword [esi]
mov dword [esp + 0x24], ecx
mov al, byte [eax]
and al, 0x40
mov byte [esp + 0x17], al
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x20], eax
cmp ebx, edx
jne 0x49dc58
mov eax, dword [esp + 0x4c]
mov al, byte [eax]
mov byte [esp + 0xf], al
mov eax, dword [esp + 0x20]
cmp ecx, 1
jle 0x49dc8a
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x20]
inc eax
push eax
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0048b765
mov dword [esp + 0x28], eax
pop ecx
pop ecx
test eax, eax
je 0x49de7e
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x20], eax
jmp 0x49dc8e
test ecx, ecx
jle 0x49dcf7
mov ebx, dword [esp + 0x10]
add esi, 8
add ebx, 0x2c
mov dword [esp + 0x34], esi
add ebx, eax
mov dword [esp + 0x2c], ecx
test dword [ebx + 4], 0x400
je 0x49dcb7
mov edx, dword [ebx + 0xc]
mov ecx, dword [esp + 0x1c]
call fcn.0048b6e9
mov al, byte [esp + 0x17]
lea edi, [ebx - 0x24]
push 0x12
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x34]
or byte [ebx], al
push 0x48
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x44], eax
xor eax, eax
push eax
push esi
call fcn.00719250
add esi, 0x48
add esp, 0xc
add ebx, 0x48
mov dword [esp + 0x34], esi
sub dword [esp + 0x2c], 1
jne 0x49dca2
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
add ecx, 0x2c
add ecx, dword [esp + 0x20]
mov dword [esp + 0x44], ecx
mov al, byte [ecx]
and al, 0x40
or al, byte [esp + 0x17]
or al, byte [esp + 0xf]
mov byte [ecx], al
mov eax, dword [edi + 0x30]
test eax, eax
je 0x49dd42
test dword [ebx + 4], 0x400000
jne 0x49dd42
xor esi, esi
mov edx, esi
cmp dword [eax], esi
jle 0x49dd3c
lea ecx, [eax + 0x18]
xor esi, esi
inc edx
mov word [ecx], si
lea ecx, [ecx + 0x14]
cmp edx, dword [eax]
jl 0x49dd2f
mov dword [ebx + 0x30], eax
mov dword [edi + 0x30], esi
mov esi, dword [edi + 0x24]
xor eax, eax
mov dword [edi + 0x24], eax
cmp dword [esp + 0x38], eax
jbe 0x49dd5e
mov edx, dword [esp + 0x40]
mov ecx, esi
push 1
call fcn.00499eb0
pop ecx
test esi, esi
je 0x49dd84
cmp dword [ebx + 0x24], 0
je 0x49dd81
push dword [ebx + 0x24]
push esi
mov esi, dword [esp + 0x20]
mov ecx, esi
push 0x2c
pop edx
call fcn.0047c7e0
pop ecx
pop ecx
mov dword [ebx + 0x24], eax
jmp 0x49dd88
mov dword [ebx + 0x24], esi
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x57], 0
jne 0x49dddd
mov eax, dword [esp + 0x50]
mov ecx, edi
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x54], esi
jmp 0x49ddc1
mov ecx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x49ddbc
mov eax, dword [ecx + 0x1c]
xor esi, esi
push esi
mov edx, ebx
mov dword [esp + 0x6c], eax
lea ecx, [esp + 0x58]
call fcn.0049d5b6
pop ecx
jmp 0x49dddf
xor esi, esi
mov eax, dword [edi + 4]
and eax, 0x100
or dword [ebx + 4], eax
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x49ddf7
mov dword [ebx + 0x3c], eax
mov dword [edi + 0x3c], esi
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x49de61
mov esi, dword [esp + 0x20]
add esi, 0x40
add esi, dword [esp + 0x10]
xor ecx, ecx
cmp dword [esi - 0x28], ecx
je 0x49de55
mov dword [esp + 0x70], ecx
lea eax, [esi - 0x38]
xorps xmm0, xmm0
mov dword [esp + 0x84], ecx
mov dword [esi], ecx
mov edx, ebx
mov dword [esi + 4], ecx
lea ecx, [esp + 0x70]
movlpd qword [esp + 0x7c], xmm0
mov dword [esp + 0x74], 0x49d660
mov dword [esp + 0x78], fcn.004387b0
mov dword [esp + 0x88], eax
call fcn.00479a16
mov eax, dword [esp + 0x24]
xor ecx, ecx
add esi, 0x48
sub eax, 1
mov dword [esp + 0x24], eax
jne 0x49de0c
mov ebx, dword [ebx + 0x34]
mov edi, dword [edi + 0x34]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x48], edi
push 0
pop eax
test ebx, ebx
jne 0x49dc26
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x8c]
mov esi, dword [esp + 0x3c]
xorps xmm0, xmm0
mov edx, esi
movlpd qword [esp + 0x98], xmm0
movlpd qword [esp + 0xa0], xmm0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], 0x481ae0
mov dword [esp + 0x94], fcn.004387b0
call fcn.00479a16
test esi, esi
je 0x49dbd6
mov ecx, dword [esp + 0x1c]
mov edx, esi
push 1
call fcn.00499ae8
pop ecx
jmp 0x49dbd6