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

Disassembly:
push 0xffffffffffffffff
push 0x4e8272
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], 0
mov edi, dword [esp + 0x94]
mov ebx, dword [esi + 4]
cmp edi, 1
jne 0x499c28
mov esi, dword [esp + 0x90]
lea ecx, [ebx + 0x10]
push esi
call fcn.0047c580
jmp 0x49a240
cmp edi, 2
jne 0x499c42
mov esi, dword [esp + 0x90]
lea ecx, [ebx + 0x10]
push esi
call fcn.0047ccb0
jmp 0x49a240
cmp edi, 3
je 0x499d88
cmp edi, 4
je 0x499d88
cmp edi, 6
je 0x499cba
cmp edi, 7
je 0x499cba
cmp edi, 5
jne 0x499ca0
lea eax, [ebx + 0x28]
push eax
lea eax, [ebx + 0x10]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0047fd50
add esp, 0xc
mov esi, dword [esp + 0x90]
mov ecx, eax
push esi
mov dword [esp + 0x8c], 0x13
call fcn.0047c610
lea ecx, [esp + 0x60]
call fcn.004357e0
jmp 0x49a240
cmp edi, 8
je 0x499ce2
mov esi, dword [esp + 0x90]
lea ecx, [ebx + 0x10]
push esi
call fcn.0047c610
jmp 0x49a240
push ecx
mov eax, esp
lea ecx, [esp + 0x98]
push ecx
mov ecx, esi
mov dword [eax], 0x400000
mov eax, dword [esi]
call dword [eax + 0x50]
mov eax, dword [eax]
and eax, 0x400000
mov dword [esp + 0x94], eax
jne 0x499cf4
mov eax, dword [esp + 0x90]
mov dword [eax], 0x4ed20c
jmp 0x49a242
mov eax, dword [esi]
lea ecx, [esp + 0x94]
push 3
push ecx
mov ecx, esi
call dword [eax + 0x58]
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x8c], 0xe
call fcn.0047c410
lea ecx, [ebx + 0x28]
mov byte [esp + 0x88], 0xf
push ecx
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0047e7c0
add esp, 0xc
lea ecx, [esp + 0x50]
call fcn.004357e0
lea ecx, [esp + 0x94]
mov byte [esp + 0x88], 0x12
call fcn.00467a00
mov esi, dword [esp + 0x90]
lea ecx, [esp + 0x70]
push esi
cmp edi, 7
jne 0x499d75
call fcn.0047ccb0
lea ecx, [esp + 0x70]
call fcn.004357e0
jmp 0x49a240
call fcn.0047c610
lea ecx, [esp + 0x70]
call fcn.004357e0
jmp 0x49a240
mov dword [esp + 0x14], 0x4ed20c
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x88], 0
mov eax, dword [eax + 0x48]
call eax
mov ebp, 0x2f
test al, al
jne 0x49a0d1
lea eax, [esp + 0x40]
lea ebp, [ebx + 0x10]
push eax
mov ecx, ebp
call fcn.0047c610
push 1
push ecx
mov ecx, esp
mov byte [esp + 0x90], 1
mov edx, 0x2f
mov ebx, 2
mov dword [esp + 0x20], ebx
mov word [ecx], dx
mov ecx, eax
call fcn.0041d360
test al, al
jne 0x499f84
lea eax, [esp + 0x3c]
mov ecx, ebp
push eax
call fcn.0047c610
mov eax, dword [eax]
mov dword [esp + 0x88], ebx
mov ebx, 6
mov dword [esp + 0x18], ebx
cmp dword [eax + 4], 2
je 0x499f84
lea eax, [esp + 0x38]
mov ecx, ebp
push eax
call fcn.0047c610
mov eax, dword [eax]
mov ebx, 0xe
mov dword [esp + 0x88], 3
mov dword [esp + 0x18], ebx
cmp dword [eax + 4], 2
jle 0x499e6e
lea eax, [esp + 0x30]
mov ecx, ebp
push eax
call fcn.0047c610
mov ecx, dword [eax]
mov ebx, 0x1e
mov dword [esp + 0x88], 4
mov dword [esp + 0x18], ebx
mov eax, dword [ecx + 0xc]
cmp word [eax + ecx + 4], 0x2f
jne 0x499f84
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
call fcn.0047c610
mov esi, eax
or ebx, 0x20
mov dword [esp + 0x88], 5
push str._.._
lea ecx, [esp + 0x4c]
mov dword [esp + 0x1c], ebx
call fcn.004011c0
push 1
mov ecx, esi
push dword [eax + 4]
push dword [eax]
call fcn.004998e0
test al, al
jne 0x499f84
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.0047c610
mov esi, eax
or ebx, 0x40
mov dword [esp + 0x88], 6
push 0x5c6e9c
lea ecx, [esp + 0x54]
mov dword [esp + 0x1c], ebx
call fcn.004011c0
push 1
mov ecx, esi
push dword [eax + 4]
push dword [eax]
call fcn.004998e0
test al, al
jne 0x499f84
lea eax, [esp + 0x20]
mov ecx, ebp
push eax
call fcn.0047c610
mov esi, eax
or ebx, 0x80
mov dword [esp + 0x88], 7
push 0x5c6ea0
lea ecx, [esp + 0x64]
mov dword [esp + 0x1c], ebx
call fcn.004011c0
push 1
mov ecx, esi
push dword [eax + 4]
push dword [eax]
call fcn.00419c60
test al, al
jne 0x499f84
lea eax, [esp + 0x1c]
mov ecx, ebp
push eax
call fcn.0047c610
mov esi, eax
or ebx, 0x100
mov dword [esp + 0x88], 8
push 0x5c6ea4
lea ecx, [esp + 0x74]
mov dword [esp + 0x1c], ebx
call fcn.004011c0
push 1
mov ecx, esi
push dword [eax + 4]
push dword [eax]
call fcn.00419c60
mov byte [esp + 0x94], 0
test al, al
je 0x499f8c
mov byte [esp + 0x94], 1
test ebx, 0x100
je 0x499fa3
lea ecx, [esp + 0x1c]
and ebx, 0xfffffeff
call fcn.00467a00
test bl, bl
jns 0x499fb6
lea ecx, [esp + 0x20]
and ebx, 0xffffff7f
call fcn.00467a00
test bl, 0x40
je 0x499fc7
lea ecx, [esp + 0x24]
and ebx, 0xffffffbf
call fcn.00467a00
test bl, 0x20
je 0x499fd8
lea ecx, [esp + 0x28]
and ebx, 0xffffffdf
call fcn.00467a00
test bl, 0x10
je 0x499fe9
lea ecx, [esp + 0x30]
and ebx, 0xffffffef
call fcn.00467a00
test bl, 8
je 0x499ffa
lea ecx, [esp + 0x38]
and ebx, 0xfffffff7
call fcn.00467a00
test bl, 4
je 0x49a00b
lea ecx, [esp + 0x3c]
and ebx, 0xfffffffb
call fcn.00467a00
mov dword [esp + 0x88], 0
test bl, 2
je 0x49a024
lea ecx, [esp + 0x40]
call fcn.00467a00
cmp byte [esp + 0x94], 0
mov ecx, ebp
je 0x49a0a2
lea eax, [esp + 0x3c]
push eax
call fcn.0047c610
push eax
lea eax, [esp + 0x44]
mov byte [esp + 0x8c], 9
push eax
call fcn.00480630
push eax
lea eax, [esp + 0xa0]
mov byte [esp + 0x94], 0xa
push eax
call fcn.004645f0
mov edx, dword [esp + 0x24]
add esp, 0x10
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x94]
mov dword [eax], edx
call fcn.00467a00
lea ecx, [esp + 0x40]
call fcn.00467a00
lea ecx, [esp + 0x3c]
mov byte [esp + 0x88], 0
call fcn.00467a00
mov ebp, 0x2f
jmp 0x49a180
lea eax, [esp + 0x94]
push eax
call fcn.0047c610
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x94]
mov dword [eax], edx
call fcn.00467a00
mov ebp, 0x2f
jmp 0x49a180
lea eax, [esp + 0x38]
push eax
lea ecx, [ebx + 0x10]
call fcn.0047c610
mov esi, eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x88], 0xb
push eax
call fcn.004642c0
add esp, 4
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x94]
mov byte [esp + 0x88], 0xc
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x98], 0x2f
mov dword [esp + 0x30], esi
call fcn.0045b810
lea eax, [esp + 0x1c]
mov byte [esp + 0x88], 0xd
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004640c0
mov edx, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x40]
mov dword [eax], edx
call fcn.00467a00
lea ecx, [esp + 0x1c]
call fcn.00467a00
lea ecx, [esp + 0x3c]
call fcn.00467a00
lea ecx, [esp + 0x38]
mov byte [esp + 0x88], 0
call fcn.00467a00
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
movzx ecx, word [eax + ecx]
cmp ecx, 0x2f
je 0x49a1b3
call fcn.0041d900
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x40]
push eax
call fcn.0048da80
mov eax, dword [esp + 0x14]
cmp edi, 4
jne 0x49a226
push 1
push 0xffffffffffffffff
push ecx
mov eax, esp
lea ecx, [esp + 0x20]
mov word [eax], bp
call fcn.0041a8f0
mov edx, eax
test edx, edx
jns 0x49a1e0
mov esi, dword [esp + 0x90]
mov ecx, dword [esp + 0x14]
mov dword [esi], ecx
jmp 0x49a22f
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp word [eax + ecx], 0x2f
je 0x49a208
cmp edx, 2
jne 0x49a208
mov esi, dword [esp + 0x90]
lea ecx, [esp + 0x14]
push 3
push esi
call fcn.0041a920
jmp 0x49a237
mov esi, dword [esp + 0x90]
lea ecx, [esp + 0x14]
test edx, edx
mov eax, 1
cmovg eax, edx
push eax
push esi
call fcn.0041a920
jmp 0x49a237
mov esi, dword [esp + 0x90]
mov dword [esi], eax
mov dword [esp + 0x14], 0x4ed20c
lea ecx, [esp + 0x14]
call fcn.00467a00
mov eax, esi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 8