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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x49a12f
sub esp, 0x68
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
test byte [eax], al
mov edx, dword [ecx + 0x13c]
test edx, edx
jne 0x499a00
mov dword [esp + 0x64], edx
mov eax, dword [ecx + 0x134]
mov ecx, dword [ecx + 0x138]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0049ce40
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
test byte [ecx], al
mov edx, dword [esp + 8]
mov ebx, dword [0x893c80]
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
test ebx, ebx
jne 0x4999e1
mov dword [ecx + 0x13c], edx
jmp 0x4999f8
add ecx, 0x13c
mov ebx, edi
mov edi, ecx
mov eax, edx
call fcn.00463680
mov eax, dword [esp + 0x6c]
mov edi, ebx
test ebp, ebp
jne 0x499a65
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x70]
test ecx, ecx
jg 0x499a0f
mov ebx, 0xffffffff
jmp 0x499a11
mov ebx, ecx
mov ebp, dword [eax]
mov ebp, dword [ebp + 0x13c]
mov dword [esp + 0x64], ebp
test byte [ebp], al
test edx, edx
setne dl
lea esi, [ebp + 4]
mov dword [esp + 0x4c], esi
xor edi, edi
xor edi, edi
mov dword [esp + 0x3c], edi
xor edi, edi
mov dword [esp + 0x38], edi
xor edi, edi
mov dword [esp + 0x34], edi
xor edi, edi
mov dword [esp + 0x30], edi
xor edi, edi
mov dword [esp + 0x58], edi
xor edi, edi
mov dword [esp + 0x54], edi
xor edi, edi
mov dword [esp + 0x2c], edi
xor edi, edi
mov dword [esp + 0x50], edi
xor edi, edi
jmp 0x499b8c
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], esi
lea eax, [0x64f5e0]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov dword [eax + 4], 7
lea ecx, [0x66d029]
mov dword [eax], ecx
mov ecx, dword [esp + 0x6c]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x134]
mov ecx, dword [ecx + 0x138]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x893c80]
test ecx, ecx
jne 0x499ab2
mov dword [eax + 8], edx
jmp 0x499ac0
lea edi, [eax + 8]
mov ecx, eax
mov eax, edx
call fcn.00463680
mov eax, ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x893c80]
test ecx, ecx
jne 0x499ada
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0x14], ecx
jmp 0x499aea
lea edi, [eax + 0x14]
mov ecx, eax
mov eax, dword [esp + 0x5c]
call fcn.00463680
mov eax, ecx
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
lea ecx, [0x6cf53c]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
add esp, 0x68
ret
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov ecx, dword [esp + 0x70]
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x4c]
mov ebx, edx
mov edx, 1
mov edi, eax
mov eax, dword [esp + 0x6c]
test ebx, ebx
je 0x49a026
mov dword [esp + 0x28], ebx
mov eax, dword [eax]
mov eax, dword [eax + 0x13c]
movzx ebx, byte [eax + 0x258]
test bl, bl
jne 0x49a022
mov dword [esp + 0x24], edi
test dl, dl
je 0x499be5
mov eax, dword [eax]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.004732d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 8]
test eax, eax
jne 0x499ef0
mov ebp, dword [esp + 0x64]
lea eax, [ebp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 0x103
mov dword [esp + 8], 0x103
call fcn.00471a70
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
cmp ecx, 1
jne 0x499c12
cmp byte [eax], 0x2e
je 0x499c1e
cmp ecx, 2
jne 0x499c3f
cmp word [eax], 0x2e2e
jne 0x499c3f
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
jmp 0x499b5f
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x74]
test edx, edx
jne 0x499cfa
mov ebx, dword [esp + 0x2c]
inc ebx
mov ebp, dword [esp + 0x30]
cmp ebp, ebx
jb 0x499c66
mov esi, dword [esp + 0x50]
jmp 0x499ca8
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x638660]
mov dword [esp + 0x10], eax
call fcn.0044aa20
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x74]
mov esi, eax
mov ebp, ecx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
mov edi, edx
lea edx, [esi + ebx*8 - 4]
mov dword [edx], ecx
lea ecx, [esi + ebx*8 - 8]
mov edx, dword [0x893c80]
test edx, edx
jne 0x499cc2
mov dword [ecx], eax
jmp 0x499ccd
mov edx, edi
mov edi, ecx
call fcn.00463680
mov edi, edx
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x3c]
jmp 0x499ee6
lea eax, [0x661240]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 4]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 8]
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x10]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], edx
mov edx, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x18]
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], edx
mov edx, dword [ecx + 0x20]
mov dword [eax + 0x24], edx
mov edx, dword [ecx + 0x24]
mov dword [eax + 0x28], edx
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x2c], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov edx, dword [0x893c80]
test edx, edx
jne 0x499d65
mov edx, dword [esp + 0x44]
mov dword [eax], edx
jmp 0x499d72
mov edi, eax
mov eax, dword [esp + 0x44]
call fcn.00463680
mov eax, edi
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx]
mov ebx, dword [ebx + 0x13c]
mov ebp, dword [ebx + 0x250]
mov ebx, dword [ebx + 0x254]
mov dword [eax + 0x40], ebx
mov ebx, dword [0x893c80]
test ebx, ebx
jne 0x499d9c
mov dword [eax + 0x3c], ebp
jmp 0x499daa
lea edi, [eax + 0x3c]
mov ebx, eax
mov eax, ebp
call fcn.00463680
mov eax, ebx
mov dword [esp + 0x40], eax
mov byte [eax + 0x50], 1
mov ebx, dword [esp + 0x74]
cmp ebx, 1
jne 0x499e52
mov ebp, dword [esp + 0x34]
inc ebp
mov esi, dword [esp + 0x3c]
cmp esi, ebp
jb 0x499dd2
mov edi, dword [esp + 0x58]
jmp 0x499e18
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], 1
lea eax, [0x649ea0]
mov dword [esp + 0x10], eax
call fcn.0044aa20
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x74]
mov edi, eax
mov esi, ecx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x64]
lea ebx, [edi + ebp*8 - 8]
lea ecx, [0x6d0274]
mov dword [ebx], ecx
lea ebx, [edi + ebp*8 - 4]
mov ecx, dword [0x893c80]
test ecx, ecx
jne 0x499e36
mov dword [ebx], eax
jmp 0x499e41
mov ecx, edi
mov edi, ebx
call fcn.00463680
mov edi, ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x54]
jmp 0x499ee6
mov ebp, dword [esp + 0x38]
inc ebp
mov esi, dword [esp + 0x24]
cmp esi, ebp
jb 0x499e65
mov edi, dword [esp + 0x54]
jmp 0x499eab
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], 1
lea eax, [0x652ca0]
mov dword [esp + 0x10], eax
call fcn.0044aa20
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x74]
mov esi, edi
mov edi, eax
mov eax, dword [esp + 0x40]
lea ebx, [edi + ebp*8 - 8]
lea ecx, [0x6d05c0]
mov dword [ebx], ecx
lea ebx, [edi + ebp*8 - 4]
mov ecx, dword [0x893c80]
test ecx, ecx
jne 0x499ec9
mov dword [ebx], eax
jmp 0x499ed4
mov ecx, edi
mov edi, ebx
call fcn.00463680
mov edi, ecx
mov eax, esi
mov ecx, ebp
mov ebx, edi
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x28]
dec edx
jmp 0x499b5f
mov dword [esp + 0x60], ebp
mov dword [esp + 0x48], ebx
lea eax, [0x6cfa50]
cmp ecx, eax
jne 0x499f30
mov dword [esp], ecx
mov dword [esp + 4], edx
lea eax, [0x6ceb7c]
mov dword [esp + 8], eax
call fcn.00403870
movzx eax, byte [esp + 0xc]
test al, al
je 0x499f30
mov eax, dword [esp + 0x70]
test eax, eax
mov edi, dword [esp + 0x24]
jmp 0x49a028
lea eax, [0x64f5e0]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x66ea27]
mov dword [eax], ecx
mov ecx, dword [esp + 0x6c]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x134]
mov ecx, dword [ecx + 0x138]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x893c80]
test ecx, ecx
jne 0x499f75
mov dword [eax + 8], edx
jmp 0x499f83
lea edi, [eax + 8]
mov ecx, eax
mov eax, edx
call fcn.00463680
mov eax, ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x893c80]
test ecx, ecx
jne 0x499f9d
mov ecx, dword [esp + 0x48]
mov dword [eax + 0x14], ecx
jmp 0x499fad
lea edi, [eax + 0x14]
mov ecx, eax
mov eax, dword [esp + 0x48]
call fcn.00463680
mov eax, ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x98], ecx
lea ecx, [0x6cf53c]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
add esp, 0x68
ret
test ecx, ecx
jmp 0x49a028
test ecx, ecx
jg 0x49a038
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
jmp WriteFile
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
lea edx, [ecx + eax]
mov ebx, dword [esp + 0x38]
add edx, ebx
test edx, edx
je 0x49a0b4
mov edx, dword [esp + 0x50]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], edi
mov dword [esp + VirtualAllocx9c], 0
mov dword [esp + 0xa0], 0
add esp, 0x68
ret
mov eax, dword [0x86ddd0]
mov ecx, dword [0x86ddd4]
mov dword [esp + SuspendThreadx78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + SetWaitableTimerx80], 0
mov dword [esp + 0x84], 0
mov dword [esp + SetUnhandledExceptionFilterx88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + SetProcessPriorityBoostx90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
add esp, 0x68
ret
call fcn.00462270
jmp fcn.00499970