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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [eax + 0x20]
push ebx
push esi
mov esi, dword [ecx + 0x18]
mov ecx, dword [esi + 4]
push edi
mov edi, dword [ecx + 0x20]
cmp edi, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
jl 0x1004906b
mov dword [esp + 0x24], eax
mov eax, edi
cdq
push edx
push eax
mov dword [esp + 0x3c], edx
mov edx, dword [ebp + 0xc]
push 0
push edx
mov dword [esp + 0x40], eax
call fcn.100083f0
mov dword [esp + 0x28], eax
mov eax, dword [esi + 4]
mov ebx, dword [eax + 0x20]
sub ebx, dword [eax + 0x24]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
cmp byte [esi + 9], 0
mov dword [esp + 0x2c], edx
je 0x100490b4
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100490b4
mov edi, esi
call fcn.10021630
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x20]
sub ecx, dword [eax + 0x24]
cmp byte [esi + 9], 0
mov dword [esp + 0x18], ecx
je 0x100490d6
add dword [esi + 0xc], 0xffffffff
jne 0x100490d6
call fcn.1001c5c0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], 0
mov esi, 8
cmp edi, dword [esp + 0x20]
je 0x10049104
cmp byte [eax + 0xf], 0
je 0x100490f7
mov dword [esp + 0xc], esi
cmp dword [eax + 0xd4], 0
je 0x10049104
mov dword [esp + 0xc], esi
cmp ebx, ecx
je 0x10049132
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edi
push ebx
push ecx
mov edi, eax
call fcn.1002f6f0
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x10049132
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x18], edx
je 0x10049132
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x28]
sub edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
sbb esi, dword [esp + 0x34]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], esi
test eax, eax
jne 0x100492c6
cmp esi, dword [esp + 0x2c]
jg 0x100492c2
jl 0x10049168
cmp edi, dword [esp + 0x28]
jae 0x100492c2
mov eax, dword [esp + 0x20]
cdq
push edx
push eax
push esi
push edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
call fcn.1000beb0
mov dword [esp + 0x40], ecx
lea ecx, [eax + 1]
mov eax, dword [ebp + 8]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 4]
mov eax, dword [0x100cb4d0]
mov dword [esp + 0x44], ebx
mov ebx, dword [edx + 4]
xor edx, edx
div dword [ebx + 0x20]
inc eax
cmp ecx, eax
je 0x100492ab
push 0
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1006b8c0
add esp, 0x10
mov dword [esp + 0xc], eax
test eax, eax
jne 0x10049271
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x94]
push eax
cmp edx, dword [ecx + 0x98]
jbe 0x100491ef
call fcn.1003f910
jmp 0x100491f4
call fcn.1003a3a0
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x10049271
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 4]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
add esi, dword [esp + 0x40]
push ecx
push edx
push eax
push ebx
push edi
call fcn.10004c30
add eax, dword [ebp + 0x10]
push eax
push esi
call fcn.100091c0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
mov eax, edi
add esp, 0xc
or eax, ebx
mov byte [edx], 0
jne 0x1004926d
cmp dword [ebp + 0x14], eax
jne 0x1004926d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 4]
mov eax, dword [eax + 0x2c]
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 0x1c], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
mov byte [esi + 0x1d], dl
mov byte [esi + 0x1e], cl
mov byte [esi + 0x1f], al
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100492ab
test byte [eax + 0x18], 0x40
mov ebx, dword [eax + 0x10]
je 0x1004928b
mov ecx, eax
call fcn.1001cc40
jmp 0x10049290
call fcn.1001d7d0
cmp dword [ebx + 0x78], 0
jne 0x100492ab
mov edx, dword [ebx + 0xdc]
cmp dword [edx + 0xc], 0
jne 0x100492ab
push ebx
call fcn.10069eb0
add esp, 4
add edi, dword [esp + 0x38]
adc esi, dword [esp + 0x3c]
cmp dword [esp + 0xc], 0
mov dword [esp + 0x1c], esi
je 0x10049152
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret