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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov eax, dword [0x10243228]
xor eax, ebp
mov dword [esp + 0x88], eax
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ecx + 0x38]
mov dword [esp + 0x24], ecx
cmp eax, ecx
je 0x1004d98d
xor esi, esi
lea ebx, [esp + 0x80]
mov dword [esp + 0x28], eax
mov eax, dword [eax]
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x68], 0x3f800000
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x20], eax
add eax, 0x54
mov dword [esp + 0x14], eax
cmp ecx, eax
je 0x1004d97c
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], esi
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x48], 0x3f800000
lea eax, [ecx - 4]
test ecx, ecx
cmove eax, ecx
cmp dword [eax + 0xc], 4
jne 0x1004d5bf
mov ecx, dword [ecx + 4]
cmp ecx, dword [esp + 0x14]
je 0x1004d970
lea edx, [ecx - 4]
test ecx, ecx
cmove edx, ecx
cmp dword [edx + 0xc], 4
mov dword [esp + 0xc], ecx
je 0x1004d74a
cmp byte [edx + 0x14], 0
jne 0x1004d731
mov eax, dword [edx + 0x24]
cmp dword [edx + 0x28], eax
je 0x1004d731
xor edi, edi
mov dword [esp + 4], edx
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [eax + edi*4]
cmp dword [eax + 8], 0x12
cmovae eax, esi
mov dword [esp + 0x2c], eax
test eax, eax
je 0x1004d71d
mov eax, dword [eax + 4]
and eax, 0xfffffffe
cmp eax, 6
jne 0x1004d71d
lea eax, [esp + 0x2c]
mov dword [esp + 0x78], eax
lea ecx, [esp + 0x30]
lea edx, [esp + 0x7c]
push edx
lea edx, [esp + 0x7c]
push edx
push 0x10211650
push eax
push ebx
call fcn.10051098
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
je 0x1004d66a
mov eax, dword [esp + 0xc]
mov dword [edx], eax
add edx, 4
mov dword [ecx + 0x10], edx
jmp 0x1004d719
mov dword [esp], ecx
lea eax, [ecx + 0xc]
mov dword [esp + 0x10], eax
mov esi, dword [eax]
mov ebx, edx
sub ebx, esi
mov ecx, ebx
sar ecx, 2
lea eax, [ecx + 1]
cmp eax, 0x40000000
jae 0x1004d9a3
sar ebx, 1
cmp ebx, eax
cmovb ebx, eax
cmp ecx, 0x1fffffff
mov eax, 0x3fffffff
cmovae ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x1004d6cf
mov esi, ecx
call fcn.1006f430
lea edx, [ebx*4]
mov ecx, eax
push 4
push edx
call fcn.10041e8a
mov ecx, esi
mov edx, dword [esp]
mov esi, dword [edx + 0xc]
mov edx, dword [edx + 0x10]
jmp 0x1004d6d1
xor eax, eax
mov dword [esp + 0x18], eax
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
mov ebx, ecx
cmp edx, esi
je 0x1004d6f6
mov ecx, ebx
mov eax, dword [edx - 4]
add edx, 0xfffffffc
mov dword [ecx - 4], eax
add ecx, 0xfffffffc
cmp esi, edx
jne 0x1004d6e6
add ebx, 4
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
lea eax, [edx + eax*4]
mov edx, dword [esp]
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ebx
mov dword [edx + 0x14], eax
xor esi, esi
lea ebx, [esp + 0x80]
mov edx, dword [esp + 4]
inc edi
mov eax, dword [edx + 0x24]
mov ecx, dword [edx + 0x28]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x1004d5fb
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
cmp ecx, dword [esp + 0x14]
jne 0x1004d5c9
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x1004d956
mov eax, dword [ecx + 0x10]
mov dword [esp + 8], ecx
sub eax, dword [ecx + 0xc]
sar eax, 2
cmp eax, 3
jb 0x1004d932
mov edi, dword [esp + 8]
lea eax, [edi + 8]
lea esi, [esp + 0x50]
mov ecx, esi
mov dword [esp + 4], eax
push eax
lea ebx, [esp + 0x84]
push ebx
call fcn.10048368
cmp dword [esp + 0x80], 0
jne 0x1004d823
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x1c]
push dword [eax + 4]
call fcn.10049848
mov dword [esp], eax
mov ebx, dword [edi + 8]
mov eax, dword [esp + 0x20]
mov esi, dword [eax]
mov ecx, dword [esi]
push 4
push 0x38
call fcn.10041e8a
mov edi, eax
mov ecx, eax
push ebx
lea ebx, [esp + 0x84]
push dword [esp + 4]
push esi
lea esi, [esp + 0x5c]
call fcn.1006b3ae
mov eax, dword [esp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [edi + 8], eax
mov dword [edi + 4], ecx
lea edx, [edi + 4]
mov edi, dword [esp + 8]
mov dword [ecx + 4], edx
mov dword [eax], edx
mov edx, dword [esp + 4]
mov dword [esp + 0x78], edx
mov ecx, esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x7c]
push eax
push 0x10211650
push edx
push ebx
call fcn.10051302
mov eax, dword [esp + 0x80]
mov ecx, dword [esp]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x1c]
push dword [eax + 4]
call fcn.10049848
mov edi, eax
mov dword [esp], eax
mov edx, ebx
mov ebx, dword [esp + 4]
mov dword [esp + 0x78], ebx
mov ecx, esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x7c]
push eax
mov eax, 0x10211650
push eax
push ebx
push edx
call fcn.10051302
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 0xc]
mov dword [edi + 0x68], eax
mov dword [esp + 0x78], ebx
mov ecx, esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x7c]
push eax
mov eax, 0x10211650
push eax
push ebx
lea eax, [esp + 0x90]
push eax
call fcn.10051302
mov eax, dword [esp + 0x80]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov ecx, dword [ebx]
push 4
push 0x38
call fcn.10041e8a
mov edi, eax
mov ecx, eax
push esi
push dword [esp + 4]
push ebx
call fcn.1006b3ae
mov esi, dword [esp + 8]
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
lea ecx, [edi + 4]
mov edx, dword [eax]
mov dword [edi + 8], eax
mov dword [edi + 4], edx
mov dword [edx + 4], ecx
mov dword [eax], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x18], ecx
cmp eax, ecx
je 0x1004d932
mov dword [esp + 0x10], eax
mov ecx, dword [eax]
lea edx, [ecx - 4]
test ecx, ecx
cmove edx, ecx
mov edi, dword [edx + 0x24]
mov ecx, dword [edx + 0x28]
cmp ecx, edi
je 0x1004d925
xor esi, esi
mov ebx, dword [edi + esi*4]
cmp dword [ebx + 8], 0x12
jb 0x1004d901
xor ebx, ebx
test ebx, ebx
je 0x1004d919
mov eax, dword [esp + 4]
cmp ebx, dword [eax]
jne 0x1004d919
mov eax, dword [esp]
mov dword [edi + esi*4], eax
mov edi, dword [edx + 0x24]
mov ecx, dword [edx + 0x28]
inc esi
mov ebx, ecx
sub ebx, edi
sar ebx, 2
cmp esi, ebx
jb 0x1004d8f6
mov eax, dword [esp + 0x10]
add eax, 4
cmp eax, dword [esp + 0x18]
jne 0x1004d8dc
mov ecx, dword [esp + 8]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x1004d756
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1004d956
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1004d952
mov dword [eax + 0x10], ecx
mov eax, dword [eax]
jmp 0x1004d944
mov ecx, dword [esp + 0xc]
cmp ecx, dword [esp + 0x14]
mov esi, 0
lea ebx, [esp + 0x80]
jne 0x1004d596
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x1004d97c
mov eax, dword [eax]
jmp 0x1004d974
mov eax, dword [esp + 0x28]
add eax, 4
cmp eax, dword [esp + 0x24]
jne 0x1004d562
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.101d7611
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x10]
call fcn.101add4c