Function at 0x1004d654
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 [0x1043db14]
xor eax, ebp
mov dword [esp + 0x78], eax
push 0x14
call fcn.1023772c
add esp, 4
mov dword [esp + 8], eax
mov ecx, eax
call fcn.1003dbac
mov eax, dword [edi]
mov dword [eax + 0x140], 0x1000
mov ecx, dword [edi]
xor esi, esi
push esi
push esi
call fcn.10056f64
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.10056da2
mov eax, dword [edi]
test eax, eax
je 0x1004dccd
lea ebx, [esp + 0x64]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1004dccd
cmp byte [esp + 0x68], 0
je 0x1004d74f
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.10006e8f
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.1004f972
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, ecx
sub edx, eax
cmp edx, 0x21
jb 0x1004d79e
cmp ecx, eax
je 0x1004dd75
lea edx, [eax + 0x10]
cmp edx, ecx
je 0x1004d76d
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 0x1004d732
mov ecx, ebx
push 0x10288741
call fcn.10001cb2
test al, al
je 0x1004d773
mov ecx, dword [esi]
lea edi, [esp + 0x50]
push edi
call fcn.10056810
jmp 0x1004d78f
lea ebx, [esp + 0x64]
jmp 0x1004d79a
mov ecx, ebx
push 0x10286124
call fcn.10001cb2
test al, al
je 0x1004d7d2
mov ecx, dword [esi]
lea edi, [esp + 0x4c]
push edi
call fcn.10056a20
mov ecx, edi
call fcn.100017a2
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
mov ecx, dword [esi]
lea edi, [esp + 0x58]
push edi
call fcn.10056da2
mov ecx, ebx
push edi
call fcn.10001b40
mov al, byte [esp + 0x5c]
mov byte [esp + 0x68], al
mov ecx, edi
call fcn.100017a2
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x1004d6cc
jmp 0x1004dccd
mov ecx, ebx
push 0x1028811b
call fcn.10001cb2
test al, al
je 0x1004d8fa
mov dword [esp + 0x54], 0xffffffff
mov ecx, dword [esi]
push 0
lea eax, [esp + 0x58]
push eax
call fcn.10056f96
mov ebx, dword [esp + 0x54]
test ebx, ebx
je 0x1004d8f1
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 0x1004dab8
mov ecx, eax
lea eax, [esp + 0x48]
push eax
call fcn.1004abc8
push 0x14
call fcn.1023772c
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.1003dbc6
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.1003dad4
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 0x1004d8be
mov eax, dword [ebx + 4]
test eax, eax
je 0x1004dd93
dec eax
mov dword [ebx + 4], eax
jne 0x1004d8be
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 0x1004d8f1
mov eax, dword [ebx + 4]
test eax, eax
je 0x1004dd96
dec eax
mov dword [ebx + 4], eax
jne 0x1004d8f1
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 0x1004d796
mov ecx, ebx
push 0x10288110
call fcn.10001cb2
test al, al
je 0x1004d796
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
sub ecx, eax
cmp ecx, 0x20
jne 0x1004d796
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.10056f64
mov ecx, dword [esi]
xor eax, eax
push eax
push eax
lea eax, [esp + 0x44]
push eax
call fcn.1005817e
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x1004db16
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 0x1004d981
inc dword [ecx + 4]
je 0x1004dd99
mov eax, dword [ebx + 4]
test eax, eax
je 0x1004dd9c
dec eax
mov dword [ebx + 4], eax
mov dword [esp + 4], ecx
jne 0x1004d9ac
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 0x1004db16
lea eax, [esp + 0x54]
push eax
call fcn.1004abc8
mov edi, dword [esp + 0x54]
lea ebx, [esp + 0x48]
mov ecx, ebx
push 0x102871c4
call fcn.100014cc
mov ecx, edi
push ebx
lea edi, [esp + 0x5c]
push edi
call fcn.10043bcc
mov ecx, edi
push str.XRef
call fcn.10001cb2
mov byte [esp + 0x10], al
mov ecx, edi
call fcn.100017a2
mov ecx, ebx
call fcn.100017a2
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x54], 0
test ebx, ebx
je 0x1004da30
mov eax, dword [ebx + 4]
test eax, eax
je 0x1004dd9f
dec eax
mov dword [ebx + 4], eax
jne 0x1004da30
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 0x1004dbdb
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 8]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x54]
push eax
call fcn.1004abc8
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x34]
push eax
call fcn.1003b740
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x1004dc3e
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 0x1004da8a
inc dword [edi + 4]
je 0x1004dda2
mov eax, dword [ebx + 4]
test eax, eax
je 0x1004dda5
dec eax
mov dword [ebx + 4], eax
jne 0x1004dab1
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 0x1004dc40
mov dword [esp + 0x54], 0
test ebx, ebx
je 0x1004dbce
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 0x1004daea
inc dword [eax + 4]
je 0x1004dda8
mov eax, dword [ebx + 4]
test eax, eax
je 0x1004ddab
dec eax
mov dword [ebx + 4], eax
jne 0x1004d840
mov eax, dword [ebx]
mov edi, dword [eax]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
push 1
call edi
jmp 0x1004d840
xor edi, edi
lea ebx, [esp + 0x64]
mov eax, dword [esp + 0xc]
cmp eax, 0x3fffff
ja 0x1004dc04
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.1003dcbe
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x2c], edi
test edi, edi
je 0x1004db5e
inc dword [edi + 4]
je 0x1004ddae
mov eax, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.1004b638
add esp, 8
mov ebx, dword [esp + 0x58]
test ebx, ebx
je 0x1004dc00
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
cmp ecx, eax
je 0x1004dbe8
mov dword [esp + 4], edi
xor edi, edi
mov edx, dword [eax + edi*8]
cmp edx, 0x3fffff
ja 0x1004dbac
mov ecx, dword [esp + 8]
push edi
push dword [esp + 0x10]
push edx
call fcn.1003dc20
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 0x1004db8c
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x58], 0
test ebx, ebx
mov edi, dword [esp + 4]
jne 0x1004dbf0
jmp 0x1004dc00
mov dword [esp + 0x48], 0
jmp 0x1004d840
lea ebx, [esp + 0x64]
mov edi, dword [esp + 4]
jmp 0x1004db1c
mov dword [esp + 0x58], 0
mov ecx, ebx
call fcn.1004bb1a
push ebx
call fcn.102377b1
add esp, 4
lea ebx, [esp + 0x64]
test edi, edi
je 0x1004d796
mov eax, dword [edi + 4]
test eax, eax
je 0x1004ddb1
dec eax
mov dword [edi + 4], eax
jne 0x1004d796
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 0x1004d796
xor ebx, ebx
push 0x14
call fcn.1023772c
add esp, 4
mov edi, eax
mov dword [esp + 0x58], ebx
mov ecx, eax
push dword [esp + 0x10]
push ebx
call fcn.1003dbc6
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.1003dad4
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 0x1004db18
mov eax, dword [ebx + 4]
test eax, eax
je 0x1004ddb4
dec eax
mov dword [ebx + 4], eax
jne 0x1004db18
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 0x1004db18
lea edi, [esp + 0x64]
mov ecx, edi
call fcn.100017a2
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.1003dad4
add esp, 0xc
mov eax, dword [edi]
mov dword [edi], esi
mov ecx, ebx
push eax
call fcn.10050d00
mov ebx, dword [edi]
mov dword [edi], esi
test ebx, ebx
je 0x1004dd28
mov ecx, ebx
call fcn.1003dc02
push ebx
call fcn.102377b1
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 0x1004dd49
cmp dword [eax + 0x10], 0
setne bl
jmp 0x1004dd4b
xor ebx, ebx
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x1004dd60
mov dword [esp + 0x70], eax
push eax
call fcn.102377b1
add esp, 4
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.102377e8
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 0x65f
push str..._buildtools_third_partylibc_trunkinclude_vector
push str._s:_d:_assertion__s_failed:__s
call fcn.101e76b7
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3