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

Disassembly:
sub esp, 0x7c
push ebx
mov ebx, dword [esp + 0x84]
mov eax, dword [ebx + 8]
add eax, dword [ebx + 0x10]
push ebp
mov ebp, dword [esp + 0x90]
push esi
mov esi, dword [esp + 0x90]
push edi
mov edi, ecx
xor ecx, ecx
cmp dword [esi + 0x80c], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
jne 0x348b89ee
push ebp
push ecx
push ebx
mov ecx, esi
call fcn.348b5f0d
mov eax, dword [esp + 0x18]
test byte [ebp], 8
jne 0x348b8a43
cmp dword [esi + 0x80c], 0
jne 0x348b8a0c
push ebp
push 0
push ebx
mov ecx, esi
call fcn.348b5f0d
mov eax, dword [esp + 0x18]
test byte [ebp], 8
jne 0x348b8a1a
cmp eax, dword [esi + 0x810]
jb 0x348b8a34
cmp eax, 0x3fffffff
jbe 0x348b8a31
push 1
push 0xfffffbe9
mov ecx, ebp
call fcn.348a7e01
jmp 0x348b8a3f
mov eax, dword [ebx + 0x10]
push ebp
push esi
push eax
push ebx
mov ecx, edi
call fcn.348b77a1
mov eax, dword [esp + 0x18]
mov edx, dword [ebp]
and edx, 8
jne 0x348b8a59
cmp dword [edi + 0x810], eax
sbb ecx, ecx
neg ecx
mov dword [esp + 0x2c], ecx
test edx, edx
jne 0x348b8e9c
mov ecx, dword [edi + 0x808]
xor esi, esi
cmp ecx, esi
je 0x348b8ab7
cmp eax, 0x6f0
ja 0x348b8ab7
cmp dword [edi + 0x804], esi
jne 0x348b8ab7
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
lea edx, [eax + ecx]
cmp edx, 0x800
ja 0x348b8aa4
push ecx
mov ecx, dword [ebx + 4]
push ecx
lea edx, [eax + edi + 4]
push edx
call sub.msvcr80.dll_memcpy
add esp, 0xc
jmp 0x348b8e5b
push 1
push 0xfffffbe9
mov ecx, ebp
call fcn.348a7e01
jmp 0x348b8e5b
cmp ecx, esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x14], esi
jne 0x348b8ae0
mov ecx, dword [edi + 0x818]
cmp ecx, esi
je 0x348b8ae0
cmp dword [ecx + 4], esi
jle 0x348b8ae0
push esi
call fcn.34897b47
cmp dword [eax], esi
jne 0x348b8b1d
mov eax, dword [ebx + 0x10]
mov ecx, dword [edi + 0x810]
cmp ecx, eax
jbe 0x348b8aef
mov eax, ecx
push ebp
push eax
lea eax, [edi + 4]
push eax
lea ecx, [esp + 0x48]
push ecx
push ebx
mov ecx, edi
call fcn.348b765a
test byte [ebp], 8
je 0x348b8b1d
lea ecx, [esp + 0x3c]
call fcn.348bac98
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x7c
ret 0xc
mov ecx, dword [ebx + 0x10]
mov eax, 0x2040811
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0xa
test byte [ebp], 8
mov edx, ecx
mov dword [esp + 0x1c], edx
jne 0x348b8e52
imul ecx, ecx, 0x7f0
lea eax, [edx - 1]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
jmp 0x348b8b5f
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov eax, dword [ebx + 8]
cmp esi, eax
jae 0x348b8e52
sub eax, dword [esp + 0x14]
sub esi, ecx
add esi, dword [ebx + 0x10]
mov ecx, eax
mov eax, 0x7f0
sub eax, esi
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x348b8b88
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + 0x818]
cmp edx, dword [ecx + 4]
jl 0x348b8b97
xor ebx, ebx
jmp 0x348b8ba7
push edx
call fcn.34897b47
mov ebx, dword [eax]
test ebx, ebx
jne 0x348b8cbf
mov esi, dword [esp + 0x90]
push ebp
lea ecx, [esp + 0x40]
push ecx
push esi
mov ecx, edi
mov dword [esp + 0x40], 0
call fcn.348b75df
test byte [ebp], 8
jne 0x348b8e1e
push 4
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x44]
call fcn.348a6c0d
mov ebx, eax
test ebx, ebx
jne 0x348b8bf4
push 1
push 0xfffffc0c
mov ecx, ebp
call fcn.348a7e01
jmp 0x348b8c4c
mov eax, dword [esp + 0x10]
add eax, 4
push eax
push 1
push ebx
lea ecx, [esp + 0x48]
call fcn.348a6dd0
test eax, eax
jne 0x348b8c1a
push 1
push 0xfffffc0c
mov ecx, ebp
call fcn.348a7e01
test byte [ebp], 8
jne 0x348b8c7f
lea ecx, [esp + 0x60]
push ecx
push ebx
lea ecx, [esp + 0x44]
call fcn.348a67ae
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x10]
add eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
push edx
push eax
add ecx, 4
push ecx
call sub.msvcr80.dll_memcpy
add esp, 0xc
test byte [ebp], 8
jne 0x348b8c7f
lea ecx, [esp + 0x3c]
call fcn.348bac85
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0x818]
push ebp
lea edx, [esp + 0x3c]
push edx
push eax
mov dword [esp + 0x44], ebx
call fcn.34897c20
test byte [ebp], 8
je 0x348b8da7
lea ecx, [esp + 0x3c]
mov dword [esp + 0x78], 1
call fcn.348bad56
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [edi + 0x828]
push 1
push eax
call fcn.348cde6b
test dword [esp + 0x78], 0xfffffffe
je 0x348b8da1
lea ecx, [esp + 0x78]
call fcn.348a7dd0
jmp 0x348b8da1
push ebp
push ebx
lea edx, [esp + 0x44]
push edx
mov ecx, edi
call fcn.348b5c23
lea eax, [esp + 0x54]
push eax
push ebx
lea ecx, [esp + 0x44]
call fcn.348a67ae
mov ecx, dword [esp + 0x10]
lea eax, [ecx + esi]
mov ecx, dword [esp + 0x58]
lea edx, [ecx - 4]
cmp edx, eax
jb 0x348b8d1c
cmp dword [esp + 0x2c], 0
jne 0x348b8d1c
mov ecx, dword [esp + 0x90]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x10]
add edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x58]
push edx
lea ecx, [eax + esi + 4]
push ecx
call sub.msvcr80.dll_memcpy
add esp, 0xc
jmp 0x348b8d8e
add eax, 4
cmp eax, 0x800
mov dword [esp + 0x38], eax
ja 0x348b8dc1
mov edx, dword [esp + 0x54]
push ecx
push edx
add edi, 4
push edi
call sub.msvcr80.dll_memcpy
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x1c]
add edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x30]
push edx
lea ecx, [esi + eax + 8]
push ecx
call sub.msvcr80.dll_memcpy
mov edx, dword [esp + 0x50]
add esp, 0x18
push edx
push edi
push ebx
lea ecx, [esp + 0x48]
mov dword [edi], 0
call fcn.348a6e6c
test eax, eax
jne 0x348b8d8a
push 1
push 0xfffffc0c
mov ecx, ebp
call fcn.348a7e01
mov edi, dword [esp + 0x20]
test byte [ebp], 8
jne 0x348b8e1e
lea ecx, [esp + 0x3c]
call fcn.348bac85
test byte [ebp], 8
jne 0x348b8e1e
cmp dword [esp + 0x1c], 0
je 0x348b8e1e
mov ecx, dword [edi + 0x818]
mov eax, dword [esp + 0x28]
cmp eax, dword [ecx + 4]
jl 0x348b8dd1
xor esi, esi
jmp 0x348b8dd9
push 1
push 0xfffffbe9
mov ecx, ebp
call fcn.348a7e01
jmp 0x348b8d8e
push eax
call fcn.34897b47
mov esi, dword [eax]
xor eax, eax
push ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
push esi
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call fcn.348b5c23
test byte [ebp], 8
jne 0x348b8e15
lea ecx, [esp + 0x6c]
push ecx
push esi
lea ecx, [esp + 0x50]
call fcn.348a67ae
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x48]
mov dword [edx], ebx
call fcn.348bac85
lea ecx, [esp + 0x48]
call fcn.348bac98
mov eax, dword [ebp]
and eax, 8
jne 0x348b8e43
add dword [esp + 0x24], 0x7f0
mov ecx, 1
add dword [esp + 0x1c], ecx
add dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x10]
add dword [esp + 0x14], ecx
test eax, eax
mov ebx, dword [esp + 0x90]
je 0x348b8b53
lea ecx, [esp + 0x3c]
call fcn.348bac98
test byte [ebp], 8
jne 0x348b8e9c
cmp dword [esp + 0x2c], 0
mov edx, dword [ebx + 8]
mov dword [esp + 0x30], edx
mov dword [edi + 0x81c], 0
je 0x348b8e83
mov eax, dword [esp + 0x18]
mov dword [edi + 0x810], eax
mov eax, 1
cmp dword [ebx + 0x18], eax
jne 0x348b8e9c
cmp dword [edi + 0x804], 0
jne 0x348b8e9c
mov dword [edi + 0x804], eax
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 0xc