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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x8c
mov eax, dword [ecx + 0x44]
mov dword [esp + 0x18], ecx
mov ecx, dword [ecx + 0x48]
cmp eax, ecx
mov dword [esp + 0x24], ecx
je 0x1004d519
lea ebx, [esp + 0x64]
lea ebp, [esp + 8]
mov esi, dword [eax]
mov dword [esp + 0x28], eax
xor eax, eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x64], eax
mov dword [esp + 8], eax
push ebx
push ebp
call fcn.1004ec5e
mov eax, dword [esi + 0x58]
lea ecx, [esi + 0x54]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], ecx
cmp eax, ecx
mov dword [esp], eax
je 0x1004d4d0
xor eax, eax
mov ecx, ebx
mov dword [esp + 8], eax
mov dword [esp + 0x14], eax
push ebp
lea eax, [esp + 0x18]
push eax
call fcn.10050678
mov eax, dword [esp]
lea ecx, [eax - 4]
test eax, eax
cmove ecx, eax
cmp dword [ecx + 0xc], 4
jne 0x1004d1fc
mov eax, dword [eax + 4]
mov dword [esp], eax
cmp eax, dword [esp + 0x10]
je 0x1004d29f
lea edx, [eax - 4]
test eax, eax
mov ecx, edx
cmove ecx, eax
cmp dword [ecx + 0xc], 4
je 0x1004d29f
cmp byte [ecx + 0x14], 0
jne 0x1004d1f6
test eax, eax
cmove edx, eax
mov ecx, dword [edx + 0x28]
cmp dword [edx + 0x2c], ecx
je 0x1004d1f6
xor edi, edi
mov eax, dword [ecx + edi*4]
cmp dword [eax + 8], 0x12
jb 0x1004d23a
xor eax, eax
test eax, eax
mov dword [esp + 0x14], eax
je 0x1004d27f
mov eax, dword [eax + 4]
and eax, 0xfffffffe
cmp eax, 6
jne 0x1004d27f
mov ecx, ebx
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.100506fa
mov ecx, dword [esp + 8]
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x18]
cmp eax, edx
je 0x1004d273
mov eax, dword [esp]
mov dword [edx], eax
add dword [ecx + 0x14], 4
jmp 0x1004d27f
mov edx, esp
add ecx, 0xc
push edx
push eax
call fcn.10044010
mov eax, dword [esp]
inc edi
lea edx, [eax - 4]
test eax, eax
cmove edx, eax
mov ecx, dword [edx + 0x28]
mov edx, dword [edx + 0x2c]
sub edx, ecx
sar edx, 2
cmp edi, edx
jb 0x1004d22f
jmp 0x1004d1f6
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
mov dword [esp + 0x2c], eax
cmp ecx, eax
je 0x1004d46b
mov eax, dword [ecx + 0x14]
mov dword [esp + 4], ecx
sub eax, dword [ecx + 0x10]
sar eax, 2
cmp eax, 3
jb 0x1004d45b
mov esi, dword [esp + 4]
lea ecx, [esp + 0x3c]
lea ebx, [esi + 8]
push ebx
lea eax, [esp + 0x3c]
push eax
call fcn.10050760
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], ebx
cmp eax, dword [esp + 0x44]
jne 0x1004d369
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x18]
push dword [eax + 4]
call fcn.1004ac50
mov ebp, eax
mov eax, dword [esp + 4]
mov esi, dword [eax + 8]
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax]
mov eax, 4
mov ecx, dword [ebx]
push eax
push 0x38
call fcn.10043e4c
mov edi, eax
mov ecx, eax
push esi
mov esi, dword [esp + 8]
push ebp
push ebx
mov ebx, dword [esp + 0x2c]
call fcn.10068912
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [edi + 8], eax
mov edx, dword [edi + 4]
and ecx, 0xfffffffc
and edx, 3
or edx, ecx
mov dword [edi + 4], edx
lea edi, [edi + 4]
mov dword [ecx + 4], edi
mov ecx, dword [eax]
and ecx, 3
or ecx, edi
mov dword [eax], ecx
lea ecx, [esp + 0x3c]
push ebx
lea eax, [esp + 0xc]
push eax
call fcn.10050a88
mov eax, dword [esp + 8]
mov dword [eax + 0xc], ebp
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x18]
push dword [eax + 4]
call fcn.1004ac50
lea edi, [esp + 0x3c]
mov ebp, eax
mov ecx, edi
push ebx
lea eax, [esp + 0xc]
mov esi, eax
push eax
call fcn.10050a88
mov eax, dword [esp + 8]
mov ecx, edi
mov eax, dword [eax + 0xc]
mov dword [ebp + 0x74], eax
push ebx
push esi
call fcn.10050a88
mov eax, dword [esp + 8]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax]
mov eax, 4
mov ecx, dword [ebx]
push eax
push 0x38
call fcn.10043e4c
mov edi, eax
mov ecx, eax
push esi
mov dword [esp + 0x38], ebp
push ebp
push ebx
call fcn.10068912
mov esi, dword [esp + 4]
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [edi + 8], eax
mov edx, dword [edi + 4]
and ecx, 0xfffffffc
and edx, 3
or edx, ecx
mov dword [edi + 4], edx
lea edi, [edi + 4]
mov dword [ecx + 4], edi
mov ecx, dword [eax]
and ecx, 3
or ecx, edi
mov dword [eax], ecx
mov ecx, esi
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
cmp eax, ecx
mov dword [esp + 0x30], ecx
je 0x1004d45b
mov ecx, dword [eax]
lea edx, [ecx - 4]
test ecx, ecx
cmove edx, ecx
mov edi, dword [edx + 0x28]
mov ecx, dword [edx + 0x2c]
cmp ecx, edi
je 0x1004d452
xor esi, esi
mov ebx, dword [edi + esi*4]
mov ebp, 0
cmp dword [ebx + 8], 0x12
cmovae ebx, ebp
test ebx, ebx
je 0x1004d446
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp]
jne 0x1004d446
mov ecx, dword [esp + 0x34]
mov dword [edi + esi*4], ecx
mov edi, dword [edx + 0x28]
mov ecx, dword [edx + 0x2c]
mov ebx, ecx
inc esi
sub ebx, edi
sar ebx, 2
cmp esi, ebx
jb 0x1004d41d
add eax, 4
cmp eax, dword [esp + 0x30]
jne 0x1004d407
mov ecx, dword [esp + 4]
mov ecx, dword [ecx]
cmp ecx, dword [esp + 0x2c]
jne 0x1004d2b1
cmp dword [esp + 0x78], 0
je 0x1004d483
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x6c]
lea ebx, [esp + 0x64]
lea ebp, [esp + 8]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 4], ecx
mov dword [esp + 0x70], 0
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
je 0x1004d4c3
mov edx, dword [eax]
cmp dword [eax + 0x10], 0
je 0x1004d4bd
xor esi, esi
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], esi
mov dword [eax + 0x18], esi
cmp edx, ecx
mov eax, edx
jne 0x1004d4aa
mov eax, dword [esp + 0x10]
cmp dword [esp], eax
jne 0x1004d1ce
cmp dword [esp + 0x50], 0
je 0x1004d4e5
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x44]
mov dword [ecx + 4], ecx
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x44]
jmp 0x1004d504
mov eax, dword [eax]
cmp eax, ecx
jne 0x1004d502
mov eax, dword [esp + 0x28]
add eax, 4
cmp eax, dword [esp + 0x24]
jne 0x1004d19a
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret