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

Disassembly:
sub esp, 0x2a0
push ebx
push ebp
push esi
mov esi, dword [eax + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov edi, ecx
lea ebp, [eax + 0xc]
mov dword [esp + 0x2c], esi
je 0x4f1d54
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
test eax, eax
je 0x4f1d9c
mov ecx, dword [edi + 8]
cmp word [ecx], bx
push esi
jne 0x4f1d83
mov edx, dword [esi]
mov eax, dword [edx + 8]
call eax
mov eax, 0xc000017c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2a0
ret 0xc
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
call edx
mov eax, 0xc0000034
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2a0
ret 0xc
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov ecx, esi
call edx
test eax, eax
je 0x4f1ded
mov eax, dword [ebp + 8]
mov ecx, dword [ebp]
lea ecx, [ecx + eax*2]
mov ax, word [ebp + 4]
sub ax, word [ebp + 8]
push ecx
add ax, ax
mov word [esp + 0x38], ax
mov word [esp + 0x3a], ax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x2bc]
push edx
push 0xffffffffffffffff
push eax
push esi
lea ebx, [esp + 0x2c]
call fcn.004767b0
mov ecx, dword [esp + 0x2c]
add esp, 0x14
jmp 0x4f227e
mov eax, esi
call fcn.004e75b0
cmp eax, 1
jne 0x4f1e24
mov dx, word [ebp + 4]
sub dx, word [ebp + 8]
add dx, dx
je 0x4f2252
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, 0xc0000034
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2a0
ret 0xc
cmp eax, 3
jne 0x4f2252
test dword [esp + 0x2b8], 0x52010026
je 0x4f2252
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov edi, esi
push esi
mov dword [esp + 0x14], edi
call eax
push 4
lea ecx, [esp + 0x28]
push ecx
call dword [0x100ef7e8]
push 4
lea edx, [esp + 0x2c]
push edx
call dword [0x100ef7e8]
lea esi, [esp + 0x40]
call fcn.004fb590
mov eax, esi
push eax
mov edx, ebp
call fcn.004fb510
test eax, eax
je 0x4f1fbb
mov esi, dword [ebp + 8]
push 0x100cf494
lea ecx, [esp + 0x7c]
push ecx
call dword [0x100ef7e0]
lea edx, [esp + 0x58]
push edx
mov edx, ebp
call fcn.004fb510
cmp eax, ebx
mov dword [ebp + 8], esi
je 0x4f1fb7
mov ecx, dword [ebp]
mov eax, dword [esp + 0x44]
sub eax, ecx
mov dword [esp + 0x38], ecx
mov cx, word [esp + 0x40]
sar eax, 1
shr cx, 1
add ax, cx
add ax, ax
mov word [esp + 0x34], ax
mov word [esp + 0x36], ax
lea eax, [esp + 0x34]
call fcn.004e6340
test eax, eax
je 0x4f1fb7
push 4
lea edx, [esp + 0x14]
push edx
call dword [0x100ef7e8]
mov eax, dword [edi]
mov eax, dword [eax + 0x6c]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x44]
push edx
mov ecx, edi
call eax
test eax, eax
je 0x4f1f77
mov ecx, dword [esp + 0x2b4]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x94]
lea eax, [esp + 0x40]
push eax
push edi
lea eax, [esp + 0x20]
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4f1f3c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
mov eax, dword [esi]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4f1f52
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x4f1f6a
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
mov ebx, eax
lea esi, [esp + 0x24]
call fcn.004f9bd0
xor ebx, ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov edi, dword [esp + 0x10]
cmp edi, ebx
je 0x4f1fa3
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4f1fa3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x40]
push eax
mov edx, ebp
call fcn.004fb510
test eax, eax
jne 0x4f1e81
mov dword [esp + 0x10], edi
mov ecx, dword [ebp]
mov ax, word [ebp + 4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [0x100ef48c]
add ax, ax
lea edx, [esp + 0x48]
mov dword [esp + 0x68], edx
mov edx, dword [0x100ef7f8]
add ecx, 0x8e0
neg edx
mov word [esp + 0x48], ax
mov word [esp + 0x4a], ax
sbb edx, edx
and edx, 0x100
lea eax, [esp + 0x60]
push eax
add edx, 0x20019
push edx
mov dword [esp + 0x1c], ebx
mov edx, dword [ecx]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edx + 0x24]
mov dword [esp + 0x6c], 0x18
mov dword [esp + 0x70], ebx
mov dword [esp + 0x78], 0x40
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
call eax
call eax
test eax, eax
jne 0x4f221c
push 0x230
lea ecx, [esp + 0x84]
push ecx
call dword [0x100ef7e8]
mov ecx, dword [0x100ef48c]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x18]
push 0x230
lea eax, [esp + 0x88]
push eax
add ecx, 0x940
mov dword [esp + 0x48], 0x230
mov eax, dword [ecx]
push 2
push edx
mov edx, dword [eax + 0x24]
call edx
call eax
lea eax, [esp + 0xac]
push eax
mov eax, dword [esp + 0x94]
lea esi, [esp + 0x54]
call fcn.005054e0
mov ecx, dword [esp + 0x2b4]
mov esi, dword [ecx + 0xc]
mov eax, dword [esi]
push ebx
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x60]
mov edx, ebp
call fcn.004fb5f0
push eax
push edi
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x88]
mov ecx, esi
call edx
mov ebx, dword [esp + 0x1c]
lea esi, [esp + 0x24]
call fcn.004f9bd0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x74]
lea edx, [esp + 0x30]
push edx
call eax
push 4
lea ecx, [esp + 0x24]
push ecx
call dword [0x100ef7e8]
mov esi, dword [esp + 0x30]
push 0x100cf494
lea edx, [esp + 0x38]
push edx
call dword [0x100ef7e0]
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x20]
push ecx
push 0x20006
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
call eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x2b8]
push edx
push eax
call fcn.004f14b0
test eax, eax
jne 0x4f21f8
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4f2160
mov edx, dword [ecx]
mov eax, dword [esp + 0x28]
mov edx, dword [edx + 0x44]
push eax
call edx
lea eax, [esp + 0x58]
mov edx, ebp
call fcn.004fb5f0
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + 0x2bc]
push ecx
mov ecx, dword [esp + 0x2bc]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
or edx, 0xffffffff
call fcn.004769a0
add esp, 0x14
lea esi, [esp + 0x20]
mov edi, eax
call fcn.004c5d90
lea esi, [esp + 0x30]
call fcn.004c5d90
lea esi, [esp + 0x1c]
call fcn.004c5d90
lea eax, [esp + 0x50]
call fcn.00505660
lea eax, [esp + 0x14]
call fcn.0053d580
lea esi, [esp + 0x24]
call fcn.00490350
lea esi, [esp + 0x10]
call fcn.004c5d90
lea esi, [esp + 0x2c]
call fcn.004c5d90
test edi, edi
je 0x4f228f
mov eax, edi
and eax, 0xefffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2a0
ret 0xc
lea esi, [esp + 0x20]
call fcn.004c5d90
lea esi, [esp + 0x30]
call fcn.004c5d90
lea esi, [esp + 0x1c]
call fcn.004c5d90
lea eax, [esp + 0x50]
call fcn.00505660
lea eax, [esp + 0x14]
call fcn.0053d580
lea esi, [esp + 0x24]
call fcn.00490350
lea esi, [esp + 0x10]
call fcn.004c5d90
lea esi, [esp + 0x2c]
call fcn.004c5d90
mov eax, 0xc0000034
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2a0
ret 0xc
mov ecx, dword [esp + 0x2b4]
mov edx, dword [esp + 0x2b8]
xor eax, eax
cmp dword [ecx + 0x6c], 1
mov ebx, edi
sete al
push eax
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00476b70
mov ecx, dword [esp + 0x48]
add esp, 0xc
mov edx, dword [esp + 0x2bc]
mov dword [edx], ecx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2a0
ret 0xc