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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x493a86
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0049176c
test al, al
je 0x49406b
lea ecx, [esi + 0x2c]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x60]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x49466b
cmp dword [ebp - 4], 0
jne 0x49410c
cmp esi, dword [edi + 0x1e0]
jne 0x494093
lea ecx, [esi + 0x2c]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x1b0]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x49420e
cmp esi, dword [edi + 0x1dc]
jne 0x4940b1
lea ecx, [esi + 0x2c]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x1ac]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x49420e
cmp byte [esi + 0x21], 0
je 0x4940ea
mov ebx, dword [edi + 0x1b4]
test ebx, ebx
je 0x49420e
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
jne 0x49420e
lea ecx, [esi + 0x2c]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x1b4]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x49420e
cmp esi, dword [edi + 0x1e4]
jne 0x49420e
lea ecx, [esi + 0x2c]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x1ac]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x49420e
cmp dword [ebp - 4], 1
jne 0x4941a6
cmp esi, dword [edi + 0x1e0]
jne 0x494134
lea ecx, [esi + 0x2c]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x1bc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x49420e
cmp esi, dword [edi + 0x1dc]
jne 0x494152
lea ecx, [esi + 0x2c]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x1b8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x49420e
cmp byte [esi + 0x21], 0
je 0x49418b
mov ebx, dword [edi + 0x1c0]
test ebx, ebx
je 0x49420e
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
jne 0x49420e
lea ecx, [esi + 0x2c]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x1c0]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x49420e
cmp esi, dword [edi + 0x1e8]
jne 0x49420e
lea ecx, [esi + 0x2c]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x1b8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x49420e
cmp dword [ebp - 4], 2
jne 0x49420e
cmp esi, dword [edi + 0x1e0]
jne 0x4941c7
lea ecx, [esi + 0x2c]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x1c8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x49420e
cmp esi, dword [edi + 0x1dc]
jne 0x4941e2
lea ecx, [esi + 0x2c]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x1c4]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x49420e
cmp byte [esi + 0x21], 0
je 0x49420e
mov ebx, dword [edi + 0x1cc]
test ebx, ebx
je 0x49420e
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
jne 0x49420e
lea ecx, [esi + 0x2c]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x1cc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [esi + 0x2c]
add eax, 2
mov dword [ebp - 0xc], eax
cmp byte [esi + 0x20], 0
je 0x4942d4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 0x160]
mov edx, dword [eax]
call dword [edx + 0x30]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x160]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [esi + 0x38]
mov ebx, dword [esi + 0x30]
sub edx, ebx
sub edx, eax
sar edx, 1
jns 0x494254
adc edx, 0
add edx, ebx
mov dword [ebp - 0x4c], edx
mov eax, dword [edi + 0x160]
mov edx, dword [eax]
call dword [edx + 0x24]
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
cmp byte [esi + 0x1d], 0
jne 0x49429c
cmp byte [esi + 0x22], 0
je 0x494289
lea ecx, [ebp - 0x50]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x16c]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x4942c6
lea ecx, [ebp - 0x50]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x164]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x4942c6
cmp byte [esi + 0x22], 0
je 0x4942b5
lea ecx, [ebp - 0x50]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x168]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x4942c6
lea ecx, [ebp - 0x50]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x160]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x48]
add eax, 2
mov dword [ebp - 0xc], eax
jmp 0x494380
cmp dword [edi + 0x78], 0
je 0x494366
mov ebx, dword [esi + 0x24]
cmp ebx, 0xffffffff
je 0x494355
mov eax, dword [edi + 0x78]
call fcn.00472a60
dec eax
cmp ebx, eax
jg 0x494355
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x30]
sub ecx, edx
mov eax, dword [edi + 0x78]
sub ecx, dword [eax + 0x30]
sar ecx, 1
jns 0x494308
adc ecx, 0
add ecx, edx
mov dword [ebp - 0x10], ecx
cmp byte [esi + 0x1d], 0
jne 0x494340
mov dword [ebp - 0x20], 5
mov edx, dword [ebp - 0xc]
push edx
mov edx, dword [ebp - 0x10]
push edx
movzx edx, byte [eax + 0x43]
mov edx, dword [edx*4 + 0x510648]
or edx, dword [ebp - 0x20]
push edx
push 1
mov ecx, dword [ebp - 8]
mov edx, dword [esi + 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x30]
jmp 0x494355
mov edx, dword [ebp - 0x10]
push edx
mov edx, dword [esi + 0x24]
push edx
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00472dbc
mov eax, dword [edi + 0x78]
mov eax, dword [eax + 0x34]
add eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
jmp 0x494380
mov ebx, dword [edi + 0x160]
test ebx, ebx
je 0x49437c
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x30]
add dword [ebp - 0xc], eax
jmp 0x494380
add dword [ebp - 0xc], 4
cmp byte [esi + 0x1d], 0
jne 0x49438e
mov eax, dword [edi + 0x44]
mov dword [ebp - 0x1c], eax
jmp 0x4943da
cmp esi, dword [edi + 0x1dc]
jne 0x49439e
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x1c], eax
jmp 0x4943da
cmp esi, dword [edi + 0x1e0]
jne 0x4943ae
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x1c], eax
jmp 0x4943da
cmp byte [esi + 0x21], 0
je 0x4943bc
mov eax, dword [edi + 0x48]
mov dword [ebp - 0x1c], eax
jmp 0x4943da
cmp esi, dword [edi + 0x1e4]
je 0x4943cc
cmp esi, dword [edi + 0x1e8]
jne 0x4943d4
mov eax, dword [edi + 0x48]
mov dword [ebp - 0x1c], eax
jmp 0x4943da
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x1c], eax
cmp dword [esi + 8], 0
je 0x49449e
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x30]
sub ecx, eax
mov edx, dword [esi + 0x40]
sub ecx, edx
sar ecx, 1
jns 0x4943f8
adc ecx, 0
add ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [esi + 0x3c]
mov dword [ebp - 0x58], ecx
add eax, edx
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 4]
sub eax, 1
jb 0x494422
je 0x494441
dec eax
je 0x494460
jmp 0x49447d
push 0xff
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [esi + 8]
mov eax, dword [edi + 0x1a0]
call fcn.00490844
mov dword [ebp - 0x18], eax
jmp 0x49447d
push 0xff
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [esi + 8]
mov eax, dword [edi + 0x1a4]
call fcn.00490844
mov dword [ebp - 0x18], eax
jmp 0x49447d
push 0xff
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [esi + 8]
mov eax, dword [edi + 0x1a8]
call fcn.00490844
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x49449e
lea ecx, [ebp - 0x60]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x18], edx
call fcn.00404af8
cmp word [esi + 0x28], 0
je 0x4945ab
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x30]
sub ecx, eax
mov edx, dword [esi + 0x48]
sub ecx, edx
sar ecx, 1
jns 0x4944bd
adc ecx, 0
add ecx, eax
mov eax, ecx
mov dword [ebp - 0x2c], eax
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x34]
sub eax, 2
mov dword [ebp - 0x28], eax
mov eax, esi
call fcn.00491764
test eax, eax
jle 0x4944f3
mov eax, dword [edi + 0x1d0]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [esi + 0x34]
sub edx, 2
sub edx, eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
sub eax, dword [esi + 0x44]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
sub eax, 1
jb 0x49450b
je 0x494536
dec eax
je 0x494561
jmp 0x49458a
push 0xff
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x64]
movzx eax, word [esi + 0x28]
call fcn.00453be4
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edi + 0x1a0]
call fcn.00490844
mov dword [ebp - 0x14], eax
jmp 0x49458a
push 0xff
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x68]
movzx eax, word [esi + 0x28]
call fcn.00453be4
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edi + 0x1a4]
call fcn.00490844
mov dword [ebp - 0x14], eax
jmp 0x49458a
push 0xff
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x6c]
movzx eax, word [esi + 0x28]
call fcn.00453be4
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edi + 0x1a8]
call fcn.00490844
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4945ab
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x14], edx
call fcn.00404af8
mov eax, esi
call fcn.00491764
test eax, eax
jle 0x49466b
mov ebx, dword [edi + 0x1d0]
test ebx, ebx
je 0x49466b
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
jne 0x49466b
mov eax, dword [esi + 0x34]
sub eax, 2
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 0x1d0]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [ebp - 0x38]
sub edx, eax
mov dword [ebp - 0x40], edx
mov eax, dword [edi + 0x1d0]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [esi + 0x38]
mov ebx, dword [esi + 0x30]
sub edx, ebx
sub edx, eax
sar edx, 1
jns 0x49460f
adc edx, 0
add edx, ebx
mov ebx, edx
mov dword [ebp - 0x3c], ebx
mov eax, dword [edi + 0x1d0]
mov edx, dword [eax]
call dword [edx + 0x24]
add ebx, eax
mov dword [ebp - 0x34], ebx
cmp byte [esi + 0x1d], 0
jne 0x49463f
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x1d8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x49466b
cmp esi, dword [edi + 0x1dc]
jne 0x49465a
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x1d4]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x49466b
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x1d0]
mov ebx, dword [eax]
call dword [ebx + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493a8d
lea eax, [ebp - 0x6c]
mov edx, 3
call fcn.0040692c
ret