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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov edi, ecx
mov eax, dword [0x10443bf0]
xor eax, ebp
mov dword [esp + 0x78], eax
push 0x14
call fcn.1023b400
add esp, 4
mov dword [esp + 8], eax
mov ecx, eax
call fcn.1003edbe
mov eax, dword [edi]
mov dword [eax + 0x140], 0x1000
mov ecx, dword [edi]
xor esi, esi
push esi
push esi
call fcn.10059314
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov esi, edi
xor eax, eax
dec eax
lea edi, [esp + 0x64]
mov dword [edi + 4], eax
mov dword [edi], eax
mov ecx, dword [esi]
push edi
call fcn.10059152
mov eax, dword [edi]
test eax, eax
je 0x1005004d
lea ebx, [esp + 0x64]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1005004d
cmp byte [esp + 0x68], 0
je 0x1004facf
mov edx, dword [esi]
mov edi, dword [edx + 0x18]
mov edx, dword [edx + 0x1c]
sub edi, ecx
sbb edx, 0
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edx
add eax, 0xc
push eax
call fcn.10006ccf
add esp, 4
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x6c]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.10051d02
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, ecx
sub edx, eax
cmp edx, 0x21
jb 0x1004fb1e
cmp ecx, eax
je 0x100500f5
lea edx, [eax + 0x10]
cmp edx, ecx
je 0x1004faed
mov edi, dword [edx]
mov ebx, dword [edx + 8]
mov dword [edx - 0x10], edi
mov edi, dword [edx + 0xc]
mov dword [edx - 4], edi
mov dword [edx - 8], ebx
add eax, 0x10
add edx, 0x10
jmp 0x1004fab2
mov ecx, ebx
push 0x1028d8a1
call fcn.10001d12
test al, al
je 0x1004faf3
mov ecx, dword [esi]
lea edi, [esp + 0x50]
push edi
call fcn.10058bc0
jmp 0x1004fb0f
lea ebx, [esp + 0x64]
jmp 0x1004fb1a
mov ecx, ebx
push 0x1028b16c
call fcn.10001d12
test al, al
je 0x1004fb52
mov ecx, dword [esi]
lea edi, [esp + 0x4c]
push edi
call fcn.10058dd0
mov ecx, edi
call fcn.10001802
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
mov ecx, dword [esi]
lea edi, [esp + 0x58]
push edi
call fcn.10059152
mov ecx, ebx
push edi
call fcn.10001ba0
mov al, byte [esp + 0x5c]
mov byte [esp + 0x68], al
mov ecx, edi
call fcn.10001802
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x1004fa4c
jmp 0x1005004d
mov ecx, ebx
push 0x1028d22b
call fcn.10001d12
test al, al
je 0x1004fc7a
mov dword [esp + 0x54], 0xffffffff
mov ecx, dword [esi]
push 0
lea eax, [esp + 0x58]
push eax
call fcn.10059340
mov ebx, dword [esp + 0x54]
test ebx, ebx
je 0x1004fc71
mov eax, dword [ebx]
mov edi, dword [eax + 0x3c]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
mov ebx, dword [esp + 0x54]
mov ecx, dword [ebx + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x48], 0xffffffff
test eax, eax
je 0x1004fe38
mov ecx, eax
lea eax, [esp + 0x48]
push eax
call fcn.1004cf68
push 0x14
call fcn.1023b400
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x48]
xor ecx, ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x58], eax
mov ecx, edi
push dword [esp + 0xc]
push eax
call fcn.1003edd8
mov dword [esp + 0x44], edi
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x44]
push eax
push ecx
lea eax, [esp + 0x60]
push eax
call fcn.1003ecac
add esp, 0xc
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov ebx, dword [esp + 0x48]
xor eax, eax
mov dword [esp + 0x48], eax
test ebx, ebx
je 0x1004fc3e
mov eax, dword [ebx + 4]
test eax, eax
je 0x10050113
dec eax
mov dword [ebx + 4], eax
jne 0x1004fc3e
mov eax, dword [ebx]
mov edi, dword [eax]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
push 1
call edi
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x54], 0
test ebx, ebx
je 0x1004fc71
mov eax, dword [ebx + 4]
test eax, eax
je 0x10050116
dec eax
mov dword [ebx + 4], eax
jne 0x1004fc71
mov eax, dword [ebx]
mov edi, dword [eax]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
push 1
call edi
lea ebx, [esp + 0x64]
jmp 0x1004fb16
mov ecx, ebx
push 0x1028d220
call fcn.10001d12
test al, al
je 0x1004fb16
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
sub ecx, eax
cmp ecx, 0x20
jne 0x1004fb16
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
mov edx, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x18], eax
mov ecx, dword [esi]
mov dword [esp + 0x1c], edi
push edi
mov dword [esp + 0x24], edx
push edx
call fcn.10059314
mov ecx, dword [esi]
xor eax, eax
push eax
push eax
lea eax, [esp + 0x44]
push eax
call fcn.1005a4e0
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x1004fe96
mov eax, dword [ebx]
mov edi, dword [eax + 0x3c]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
mov ecx, eax
test eax, eax
je 0x1004fd01
inc dword [ecx + 4]
je 0x10050119
mov eax, dword [ebx + 4]
test eax, eax
je 0x1005011c
dec eax
mov dword [ebx + 4], eax
mov dword [esp + 4], ecx
jne 0x1004fd2c
mov eax, dword [ebx]
mov edi, dword [eax]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
push 1
call edi
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x1004fe96
lea eax, [esp + 0x54]
push eax
call fcn.1004cf68
mov edi, dword [esp + 0x54]
lea ebx, [esp + 0x48]
mov ecx, ebx
push 0x1028c204
call fcn.1000152c
mov ecx, edi
push ebx
lea edi, [esp + 0x5c]
push edi
call fcn.10044ebc
mov ecx, edi
push str.XRef
call fcn.10001d12
mov byte [esp + 0x10], al
mov ecx, edi
call fcn.10001802
mov ecx, ebx
call fcn.10001802
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x54], 0
test ebx, ebx
je 0x1004fdb0
mov eax, dword [ebx + 4]
test eax, eax
je 0x1005011f
dec eax
mov dword [ebx + 4], eax
jne 0x1004fdb0
mov eax, dword [ebx]
mov edi, dword [eax]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
push 1
call edi
cmp byte [esp + 0x10], 0
je 0x1004ff5b
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 8]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x54]
push eax
call fcn.1004cf68
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x34]
push eax
call fcn.1003c900
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x1004ffbe
mov eax, dword [ebx]
mov edi, dword [eax + 0x28]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
mov edi, eax
test eax, eax
je 0x1004fe0a
inc dword [edi + 4]
je 0x10050122
mov eax, dword [ebx + 4]
test eax, eax
je 0x10050125
dec eax
mov dword [ebx + 4], eax
jne 0x1004fe31
mov eax, dword [ebx]
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
call dword [section..00cfg]
mov ecx, ebx
push 1
call dword [esp + 0x18]
mov ebx, edi
jmp 0x1004ffc0
mov dword [esp + 0x54], 0
test ebx, ebx
je 0x1004ff4e
mov eax, dword [ebx]
mov edi, dword [eax + 0x28]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
mov dword [esp + 0x48], eax
test eax, eax
je 0x1004fe6a
inc dword [eax + 4]
je 0x10050128
mov eax, dword [ebx + 4]
test eax, eax
je 0x1005012b
dec eax
mov dword [ebx + 4], eax
jne 0x1004fbc0
mov eax, dword [ebx]
mov edi, dword [eax]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
push 1
call edi
jmp 0x1004fbc0
xor edi, edi
lea ebx, [esp + 0x64]
mov eax, dword [esp + 0xc]
cmp eax, 0x3fffff
ja 0x1004ff84
mov edx, eax
movzx eax, word [esp + 0x18]
mov ecx, dword [esp + 8]
push dword [esp + 0x1c]
push dword [esp + 0x24]
push eax
push edx
call fcn.1003eed0
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x2c], edi
test edi, edi
je 0x1004fede
inc dword [edi + 4]
je 0x1005012e
mov eax, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.1004d9c0
add esp, 8
mov ebx, dword [esp + 0x58]
test ebx, ebx
je 0x1004ff80
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
cmp ecx, eax
je 0x1004ff68
mov dword [esp + 4], edi
xor edi, edi
mov edx, dword [eax + edi*8]
cmp edx, 0x3fffff
ja 0x1004ff2c
mov ecx, dword [esp + 8]
push edi
push dword [esp + 0x10]
push edx
call fcn.1003ee32
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
inc edi
mov edx, ecx
sub edx, eax
sar edx, 3
cmp edi, edx
jb 0x1004ff0c
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x58], 0
test ebx, ebx
mov edi, dword [esp + 4]
jne 0x1004ff70
jmp 0x1004ff80
mov dword [esp + 0x48], 0
jmp 0x1004fbc0
lea ebx, [esp + 0x64]
mov edi, dword [esp + 4]
jmp 0x1004fe9c
mov dword [esp + 0x58], 0
mov ecx, ebx
call fcn.1004dea2
push ebx
call fcn.1023b489
add esp, 4
lea ebx, [esp + 0x64]
test edi, edi
je 0x1004fb16
mov eax, dword [edi + 4]
test eax, eax
je 0x10050131
dec eax
mov dword [edi + 4], eax
jne 0x1004fb16
mov eax, dword [edi]
mov dword [esp + 4], edi
mov edi, dword [eax]
mov ecx, edi
call dword [section..00cfg]
mov ecx, dword [esp + 4]
push 1
call edi
jmp 0x1004fb16
xor ebx, ebx
push 0x14
call fcn.1023b400
add esp, 4
mov edi, eax
mov dword [esp + 0x58], ebx
mov ecx, eax
push dword [esp + 0x10]
push ebx
call fcn.1003edd8
mov dword [esp + 0x38], edi
mov ecx, dword [esp + 8]
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x38]
push eax
push ecx
lea eax, [esp + 0x60]
push eax
call fcn.1003ecac
add esp, 0xc
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x58], eax
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x54], eax
test ebx, ebx
mov edi, dword [esp + 4]
je 0x1004fe98
mov eax, dword [ebx + 4]
test eax, eax
je 0x10050134
dec eax
mov dword [ebx + 4], eax
jne 0x1004fe98
mov eax, dword [ebx]
mov edi, dword [eax]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
push 1
call edi
mov edi, dword [esp + 4]
jmp 0x1004fe98
lea edi, [esp + 0x64]
mov ecx, edi
call fcn.10001802
mov eax, dword [esp + 8]
mov dword [esp + 0x28], eax
lea ebx, [esi + 0x18]
mov eax, dword [esi + 0x18]
mov ecx, esi
xor esi, esi
mov dword [esp + 8], ecx
mov dword [ecx + 0x18], esi
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x28]
push ecx
push eax
push edi
call fcn.1003ecac
add esp, 0xc
mov eax, dword [edi]
mov dword [edi], esi
mov ecx, ebx
push eax
call fcn.1005307a
mov ebx, dword [edi]
mov dword [edi], esi
test ebx, ebx
je 0x100500a8
mov ecx, ebx
call fcn.1003ee14
push ebx
call fcn.1023b489
add esp, 4
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
mov dword [eax + 0x140], 0x200
mov eax, dword [ecx + 0x18]
cmp dword [eax], 0
je 0x100500c9
cmp dword [eax + 0x10], 0
setne bl
jmp 0x100500cb
xor ebx, ebx
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x100500e0
mov dword [esp + 0x70], eax
push eax
call fcn.1023b489
add esp, 4
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.1023b4d8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push str.vector::erase_iterator__called_with_a_non_dereferenceable_iterator
push str.__position___end__
push 0x6cb
push str..._third_partylibc_srcinclude_vector
push str._s:_d:_assertion__s_failed:__s_n
call fcn.101f1b27
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3