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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
push ecx
mov edi, eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [eax], 1
call fcn.10003de0
mov edx, dword [edi + 0x1c]
mov ecx, dword [ebx + 4]
mov eax, dword [edi + 0x20]
add edx, edx
add esp, 0xc
lea eax, [eax + edx*8 - 0x10]
push ecx
mov ecx, dword [eax + 8]
push esi
mov edx, str.iterator
mov eax, edi
lea esi, [esp + 0x68]
call fcn.10003a20
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov esi, dword [eax + 8]
mov dword [esp + 0x50], edx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], edx
call fcn.10001820
mov edx, dword [ebx + 4]
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [esp + 0x60]
push ecx
push edx
push eax
mov eax, dword [ebx + 0xc]
mov ecx, edi
mov dword [esp + 0x6c], 6
call fcn.100049f0
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x14], ebx
mov ecx, dword [ebp + 0x10]
mov eax, dword [esi]
mov edx, dword [ecx + 4]
mov dword [esp + 0x10], edx
cmp eax, 2
je 0x10004bd6
cmp eax, 1
je 0x10004bd6
cmp eax, 3
jne 0x10004bea
push str.is_done
mov ecx, esi
call fcn.10006090
mov esi, eax
add esp, 4
cmp dword [esi], 9
je 0x10004bb9
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0xc]
push 6
push 0x12
push eax
push ecx
push edi
call fcn.10001770
add esp, 0x14
mov edx, dword [esi]
mov dword [esp + 0x18], edx
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x24], edx
jmp 0x10004bea
mov dword [esp + 0x18], 0xa
mov dword [esp + 0x20], str.is_done
mov dword [esp + 0x24], esi
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
cmp eax, ecx
jle 0x10004c2b
push ecx
push eax
push str.stack_pointer.._d__stack_alloc_size.._d_n
mov dword [0x1013a144], 0x10137980
mov dword [0x1013a198], 0x1003953c
mov dword [0x1013a140], 0x7f1
mov dword [0x1013a13c], 0x100396cc
call fcn.10001020
add esp, 0xc
mov eax, dword [edi + 0x18]
cmp dword [edi + 0x1c], eax
jne 0x10004c52
mov esi, dword [edi + 0x20]
add eax, 0x100
mov dword [edi + 0x18], eax
shl eax, 4
mov ebx, 0x7f4
call fcn.10007400
mov ebx, dword [esp + 0x14]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x1c]
mov ecx, dword [esp + 0x18]
mov esi, dword [ebp + 0xc]
shl eax, 4
add eax, dword [edi + 0x20]
push 0
mov dword [eax], ecx
mov edx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov dword [eax + 0xc], edx
inc dword [edi + 0x1c]
push 0
lea eax, [esp + 0x20]
push eax
push ecx
push esi
lea edx, [esp + 0xac]
push edi
push edx
call fcn.100037c0
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x80], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
dec dword [edi + 0x1c]
add esp, 0x1c
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
cmp ecx, 1
je 0x10004cd3
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
push 6
push 4
push edx
push esi
push edi
call fcn.10001770
add esp, 0x14
cmp dword [esp + 0x68], 0
jne 0x10005020
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 4]
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx]
mov dword [esp + 0x5c], esi
cmp eax, 2
je 0x10004d46
cmp eax, 1
je 0x10004d46
cmp eax, 3
jne 0x10004d5a
push str.current_item
call fcn.10006090
add esp, 4
cmp dword [eax], 9
mov dword [esp + 0x10], eax
je 0x10004d29
mov ecx, dword [ebp + 0xc]
push 6
push 0x12
push esi
push ecx
push edi
call fcn.10001770
mov eax, dword [esp + 0x24]
add esp, 0x14
mov edx, dword [eax]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x30], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x34], eax
jmp 0x10004d5a
mov dword [esp + 0x28], 0xa
mov dword [esp + 0x30], str.current_item
mov dword [esp + 0x34], ecx
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
cmp eax, ecx
jle 0x10004d9b
push ecx
push eax
push str.stack_pointer.._d__stack_alloc_size.._d_n
mov dword [0x1013a144], 0x10137980
mov dword [0x1013a198], 0x1003953c
mov dword [0x1013a140], 0x7f1
mov dword [0x1013a13c], 0x100396cc
call fcn.10001020
add esp, 0xc
mov eax, dword [edi + 0x18]
cmp dword [edi + 0x1c], eax
jne 0x10004dc6
mov esi, dword [edi + 0x20]
add eax, 0x100
mov dword [edi + 0x18], eax
shl eax, 4
mov ebx, 0x7f4
call fcn.10007400
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x5c]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x1c]
mov ecx, dword [esp + 0x28]
shl eax, 4
add eax, dword [edi + 0x20]
push 0
mov dword [eax], ecx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x38]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0xc], edx
inc dword [edi + 0x1c]
push 0
lea eax, [esp + 0x30]
push eax
push esi
push ecx
lea edx, [esp + 0x9c]
push edi
push edx
call fcn.100037c0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
dec dword [edi + 0x1c]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x18]
mov esi, dword [edx]
add esp, 0x1c
mov ecx, 1
test esi, esi
je 0x10004e78
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esp + 0xc0]
push edi
push edx
call fcn.100051f0
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x84], edx
mov edx, dword [eax + 8]
add esp, 0x10
mov dword [esp + 0x78], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
cmp ecx, 1
jne 0x10004e8a
mov esi, dword [esi + 4]
test esi, esi
jne 0x10004e36
jmp 0x10004e8a
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x7c]
mov esi, dword [ebp + 8]
mov dword [esi], ecx
mov ecx, dword [esp + 0x74]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
mov eax, dword [esi]
cmp eax, 2
je 0x10005013
cmp eax, 3
je 0x10004fba
cmp eax, 4
jne 0x10004f0c
mov eax, dword [esi + 8]
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx + 8]
test eax, eax
jne 0x10004ed3
mov eax, 1
jmp 0x10004f0a
test ecx, ecx
je 0x10004f05
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10004ef7
test dl, dl
je 0x10004ef3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10004ef7
add eax, 2
add ecx, 2
test dl, dl
jne 0x10004ed7
xor eax, eax
jmp 0x10004efc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, 1
je 0x10004f0a
mov eax, 4
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x50]
mov ebx, dword [eax + 4]
mov eax, dword [ecx]
cmp eax, 2
je 0x10004f6a
cmp eax, 1
je 0x10004f6a
cmp eax, 3
jne 0x10004f7e
push str.next
call fcn.10006090
mov esi, eax
add esp, 4
cmp dword [esi], 9
je 0x10004f4d
mov ecx, dword [ebp + 0xc]
push 6
push 0x12
push ebx
push ecx
push edi
call fcn.10001770
add esp, 0x14
mov edx, dword [esi]
mov dword [esp + 0x38], edx
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x40], ecx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x44], edx
jmp 0x10004f7e
mov dword [esp + 0x38], 0xa
mov dword [esp + 0x40], str.next
mov dword [esp + 0x44], ecx
lea eax, [esp + 0x38]
push eax
call fcn.10001820
mov edx, dword [ebp + 0xc]
add esp, 4
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
push ebx
push edx
lea eax, [esp + 0xbc]
push edi
push eax
call fcn.100037c0
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x6c]
add esp, 0x1c
dec dword [edi + 0x1c]
jmp 0x10004b72
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx + 8]
mov ebx, eax
mov eax, dword [esi + 8]
test eax, eax
jne 0x10004fdd
add dword [edi + 0x1c], 0xfffffffe
mov eax, 1
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x1000500f
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10005001
test dl, dl
je 0x10004ffd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10005001
add eax, 2
add ecx, 2
test dl, dl
jne 0x10004fe1
xor eax, eax
jmp 0x10005006
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, 1
je 0x10005011
mov eax, ebx
mov dword [esi], eax
mov eax, esi
add dword [edi + 0x1c], 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add dword [edi + 0x1c], 0xfffffffe
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret