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

Disassembly:
push 0xffffffffffffffff
push 0x5ecd8e
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x676890]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x676890]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov edi, dword [esp + 0x234]
jmp 0x498f57
xor ebx, ebx
push ebx
push edi
call fcn.005a12fa
add esp, 8
test eax, eax
jne 0x499492
mov esi, 0xf
mov eax, edi
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
lea ebp, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x498f90
sub eax, ebp
push eax
push edi
lea ecx, [esp + 0x90]
call fcn.00403f00
push 1
push 0x6322ec
lea ecx, [esp + 0x90]
mov dword [esp + 0x234], ebx
call fcn.00404150
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.004046b0
push 5
push str.Index
lea ecx, [esp + 0x74]
mov byte [esp + 0x234], 1
call fcn.00404150
lea ecx, [esp + 0xdc]
call fcn.0051a520
mov eax, dword [esp + 0x70]
mov ebp, 0x10
mov byte [esp + 0x22c], 2
cmp dword [esp + 0x84], ebp
jae 0x499029
lea eax, [esp + 0x70]
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ecx
push eax
lea ecx, [esp + 0xec]
call fcn.0051a9d0
test eax, eax
jne 0x4990d9
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x84], ebp
jae 0x499056
lea eax, [esp + 0x70]
push eax
push str.FATAL_ERROR__File_not_exist:__s
call fcn.005192f0
mov eax, dword [esp + 0x78]
add esp, 8
cmp dword [esp + 0x84], ebp
jae 0x499075
lea eax, [esp + 0x70]
push eax
push str.FATAL_ERROR__File_not_exist:__s
call fcn.00519180
add esp, 8
lea ecx, [esp + 0xdc]
mov byte [esp + 0x22c], 1
call fcn.0051a950
cmp dword [esp + 0x84], ebp
jb 0x4990ad
mov edx, dword [esp + 0x70]
push edx
call fcn.0059fc2a
add esp, 4
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
cmp dword [esp + 0xa0], ebp
jb 0x499492
mov eax, dword [esp + 0x8c]
push eax
jmp 0x49948a
lea ecx, [esp + 0x18]
call fcn.0051d480
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0xe0]
mov byte [esp + 0x230], 3
call fcn.0051a7a0
push eax
lea ecx, [esp + 0x20]
call fcn.0051d9d0
push ebx
lea ecx, [esp + 0x1c]
call fcn.0051d440
push 4
mov edi, eax
mov edx, dword [edi + 0x14]
push str.FILE
push edx
push ebx
mov ecx, edi
call fcn.00406860
test eax, eax
je 0x49918d
mov eax, dword [edi + 0x14]
push 4
push str.PACK
push eax
push ebx
mov ecx, edi
call fcn.00406860
test eax, eax
je 0x49918d
push str.Pack_Index_has_invalid_syntax._First_line_must_be_PACK_or_FILE
call fcn.00519180
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x22c], 2
call fcn.0051d4a0
lea ecx, [esp + 0xdc]
mov byte [esp + 0x22c], 1
call fcn.0051a950
lea ecx, [esp + 0x6c]
call fcn.0045c050
lea ecx, [esp + 0x88]
call fcn.0045c050
xor al, al
jmp 0x499494
push 0x60d63c
call fcn.00519120
add esp, 4
call fcn.004fa270
mov ecx, dword [0x67d464]
call fcn.0055e5c0
mov ecx, dword [0x67d464]
push 1
call fcn.0055e640
call fcn.005235c0
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
lea ecx, [esp + 0x18]
mov byte [esp + 0x22c], 5
mov edi, 1
call fcn.0051d420
dec eax
cmp eax, edi
jbe 0x49933a
push edi
lea ecx, [esp + 0x1c]
call fcn.0051d440
lea ecx, [edi + 1]
push ecx
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.0051d440
push eax
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.004038f0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0x238], 6
call fcn.004046b0
mov byte [esp + 0x22c], 5
cmp dword [esp + 0x4c], ebp
jb 0x499267
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0059fc2a
add esp, 4
push str._texcache
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00404290
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xcc]
mov byte [esp + 0x238], 7
call fcn.004046b0
mov byte [esp + 0x22c], 5
cmp dword [esp + 0x4c], ebp
jb 0x4992b4
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0059fc2a
add esp, 4
cmp dword [esi + 0x18], ebp
lea ebp, [esi + 4]
jb 0x4992c1
mov eax, dword [ebp]
jmp 0x4992c3
mov eax, ebp
cmp dword [esp + 0xbc], 0x10
mov ecx, dword [esp + 0xa8]
jae 0x4992db
lea ecx, [esp + 0xa8]
push ebx
push eax
push ecx
mov ecx, dword [0x67d464]
call fcn.0055fc00
mov eax, 0x10
cmp dword [esi + 0x18], eax
jb 0x4992f6
mov ebp, dword [ebp]
cmp dword [esp + 0xd8], eax
mov eax, dword [esp + 0xc4]
jae 0x49930d
lea eax, [esp + 0xc4]
mov ecx, dword [0x67d464]
push ebx
push ebp
push eax
call fcn.0055fc00
lea ecx, [esp + 0x18]
add edi, 2
call fcn.0051d420
dec eax
mov ebp, 0x10
cmp edi, eax
jb 0x499205
mov esi, 0xf
push 4
push str.root
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.00403f00
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x238], 8
call fcn.004038f0
add esp, 0xc
mov byte [esp + 0x22c], 9
cmp dword [eax + 0x18], ebp
jb 0x49938a
mov eax, dword [eax + 4]
jmp 0x49938d
add eax, 4
mov ecx, dword [0x67d464]
push eax
call fcn.0055e600
cmp dword [esp + 0x4c], ebp
jb 0x4993ac
mov edx, dword [esp + 0x38]
push edx
call fcn.0059fc2a
add esp, 4
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [esp + 0x68], ebp
jb 0x4993cb
mov eax, dword [esp + 0x54]
push eax
call fcn.0059fc2a
add esp, 4
jmp 0x4993d0
cmp dword [esp + 0xd8], ebp
jb 0x4993e9
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0059fc2a
add esp, 4
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
cmp dword [esp + 0xbc], ebp
jb 0x499417
mov edx, dword [esp + 0xa8]
push edx
call fcn.0059fc2a
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
mov byte [esp + 0x22c], 2
call fcn.0051d4a0
lea ecx, [esp + 0xdc]
mov byte [esp + 0x22c], 1
call fcn.0051a950
cmp dword [esp + 0x84], ebp
jb 0x499467
mov eax, dword [esp + 0x70]
push eax
call fcn.0059fc2a
add esp, 4
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
cmp dword [esp + 0xa0], ebp
jb 0x499492
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.0059fc2a
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.005a09eb
add esp, 0x21c
ret