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

Disassembly:
add esp, 0xfffffff8
inc esi
mov ecx, dword [esp + 0x240]
lea eax, [esp + 0x24]
mov ebx, dword [eax + 0xc40]
mov edx, 0x208
add ebx, dword [ecx + esi*4 - 4]
call fcn.100041b0
mov eax, ebx
push eax
call fcn.10003e88
mov ecx, eax
test eax, eax
je 0x10004645
cmp eax, 6
jbe 0x1000458f
xchg ch, cl
add byte [eax], al
invalid
mov dword [esp + 0x10], ecx
lea edx, [eax + ebx]
neg edx
lea ecx, [esp + eax*2 + 0x1c]
add edx, ecx
lea edi, [eax + eax]
mov dword [esp + 0x240], ecx
mov ecx, dword [esp + 0x10]
cmp edx, edi
jg 0x100044ed
neg edx
cmp edx, eax
jle 0x1000458f
mov edi, eax
shr edi, 1
je 0x1000628b
xor ecx, ecx
lea edx, [ebx + eax]
mov dword [esp + 0x234], esi
mov dword [esp + 0x244], edi
mov dword [esp + 0x224], eax
mov dword [esp + 0x228], ebx
mov esi, ecx
mov ebx, dword [esp + 0x240]
lea eax, [ecx*4]
neg eax
inc ecx
movsx edi, byte [esi + edx]
mov word [ebx + eax], di
movsx edi, byte [esi + edx - 1]
add esi, 0xfffffffe
mov word [ebx + eax - 2], di
cmp ecx, dword [esp + 0x244]
jb 0x1000451a
mov eax, dword [esp + 0x224]
lea edx, [ecx + ecx + 1]
mov ebx, dword [esp + 0x228]
mov esi, dword [esp + 0x234]
lea ecx, [edx - 1]
cmp ecx, eax
jae 0x10004582
lea ecx, [ebx + eax]
sub ecx, edx
add edx, edx
neg edx
movsx edi, byte [ecx + 1]
mov ecx, dword [esp + 0x240]
mov word [edx + ecx + 2], di
lea edx, [eax + 1]
sub eax, edx
lea ecx, [eax + 1]
jmp 0x10004645
mov edx, eax
shr edx, 1
mov dword [esp + 0x248], edx
je 0x10006537
xor edx, edx
lea ecx, [esp + eax*2 + 0x1c]
mov dword [esp + 0x22c], ecx
lea edi, [ebx + eax]
mov dword [esp + 0x224], eax
xor ecx, ecx
mov dword [esp + 0x228], ebx
mov dword [esp + 0x234], esi
mov eax, dword [esp + 0x22c]
movsx esi, byte [ecx + edi]
lea ebx, [edx*4]
neg ebx
inc edx
mov word [eax + ebx], si
movsx esi, byte [ecx + edi - 1]
add ecx, 0xfffffffe
mov word [eax + ebx - 2], si
cmp edx, dword [esp + 0x248]
jb 0x100045ce
mov eax, dword [esp + 0x224]
lea ecx, [edx + edx]
neg ecx
lea edi, [edx + edx + 1]
mov ebx, dword [esp + 0x228]
add ecx, eax
mov esi, dword [esp + 0x234]
lea edx, [edi - 1]
cmp edx, eax
jae 0x10004645
lea ecx, [ebx + eax]
sub ecx, edi
movsx edx, byte [ecx + 1]
mov ecx, eax
sub ecx, edi
add edi, edi
neg edi
mov dword [esp + 0x230], edx
lea edx, [esp + eax*2 + 0x1c]
mov eax, dword [esp + 0x230]
mov word [edi + edx + 2], ax
movsx edx, byte [ecx + ebx]
mov word [esp + ecx*2 + 0x1c], dx
push eax
lea eax, [esp + 0x20]
call fcn.10003ec0
mov edx, eax
test edx, edx
jbe 0x100046b7
mov eax, dword [esp + 0xca0]
xor ecx, ecx
mov ebx, dword [eax + 0x11c]
mov eax, edx
shr eax, 1
je 0x10006295
mov dword [esp + 0x234], esi
xor edi, edi
imul ecx, ebx
movzx esi, word [esp + edi*4 + 0x1c]
add ecx, esi
imul ecx, ebx
movzx esi, word [esp + edi*4 + 0x1e]
inc edi
add ecx, esi
cmp edi, eax
jb 0x10004680
mov esi, dword [esp + 0x234]
lea edi, [edi + edi + 1]
lea eax, [edi - 1]
cmp eax, edx
jae 0x100046b9
imul ebx, ecx
movzx ecx, word [esp + edi*2 + 0x1a]
add ecx, ebx
jmp 0x100046b9
xor ecx, ecx
cmp ecx, dword [esp + 0x23c]
jne 0x10004484
mov esi, dword [esp + 0xa54]
mov ebx, dword [esp + 0xca0]
mov eax, dword [ebx + 0x124]
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x44c], eax
mov ecx, dword [edx + esi + 0x78]
mov edx, dword [ecx + esi + 0x20]
mov edi, dword [ecx + esi + 0x1c]
add edx, esi
mov ecx, dword [ecx + esi + 0x24]
add edi, esi
add ecx, esi
xor esi, esi
mov dword [esp + 0x440], ecx
add byte [eax], al
mov dword [esp + 0x444], edi
mov dword [esp + 0x448], edx
mov edx, 1
jmp 0x10004562
mov edi, 1
jmp 0x100046a4
mov edi, 1
jmp 0x10004616