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

Disassembly:
sub esp, 0x114
mov eax, dword [0x34893850]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x11c]
mov ecx, dword [0x348ca260]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x124]
mov ebp, dword [esi + 0x14]
mov ebx, dword [ebp + 0x114]
push edi
mov edi, dword [esi + 0x18]
mov dword [esp + 0x68], eax
xor eax, eax
push 0xc
push ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x40], 0xfcfcfcfc
mov dword [esp + 0x44], 0xfcfc
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x30], ebx
call fcn.348c4fa9
test eax, eax
mov dword [esp + 0x18], eax
jne 0x348b60d4
mov eax, 0xfffffc0d
jmp 0x348b6a1c
mov edx, dword [eax]
xor ecx, ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
cmp esi, dword [ebp + 0x108]
mov dword [esp + 0x24], 0xc
jne 0x348b60fe
mov edx, dword [esp + 0x68]
mov dword [esi + 0x4c], eax
mov dword [edx], eax
jmp 0x348b6a1a
mov eax, 0xffff
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
xor eax, eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], ecx
movzx ecx, word [ebp + 0xee]
push edi
push ecx
push ebx
call fcn.348a4f05
mov esi, eax
test esi, esi
jl 0x348b6920
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.3489c7c1
mov esi, eax
test esi, esi
jl 0x348b6920
lea esp, [esp]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x348b690c
mov ecx, dword [ebp + 0xa4]
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call fcn.34899c25
test eax, eax
je 0x348b6895
movzx edx, word [eax]
mov ecx, dword [ebp + 0xbc]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.34899c25
test eax, eax
je 0x348b68d8
movzx ax, byte [eax]
mov ecx, dword [ebp + 0xa0]
mov edx, dword [esp + 0x14]
movzx esi, ax
push ecx
push edx
mov dword [esp + 0x38], esi
call fcn.34899d08
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x9c]
push eax
push ecx
call fcn.34899d08
mov edx, dword [ebp + 0x90]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.34899d08
mov ecx, dword [ebp + 0x98]
mov edx, dword [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x58], eax
call fcn.34899d08
mov ecx, dword [ebp + 0xc0]
mov edx, dword [esp + 0x14]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call fcn.34899c25
mov ecx, eax
movzx eax, word [esp + 0x10]
mov ebx, eax
shr ebx, 3
test ecx, ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x2c], ebx
je 0x348b68fd
lea ecx, [ebx*8]
cmp eax, ecx
mov dword [esp + 0x20], ecx
jne 0x348b68fd
mov ecx, dword [ebp + 0xc8]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call fcn.34899c25
test eax, eax
mov dword [esp + 0x44], eax
je 0x348b68d8
movzx eax, word [esp + 0x10]
cmp eax, dword [esp + 0x20]
jne 0x348b68d8
movzx eax, si
test eax, eax
je 0x348b6466
jle 0x348b68e7
cmp eax, 2
jg 0x348b68e7
mov ecx, dword [ebp + 0x94]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.34899d08
cmp si, 2
mov dword [esp + 0x6c], eax
jne 0x348b63bb
test eax, eax
jne 0x348b685a
mov ecx, dword [ebp + 0xb8]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call fcn.34899c25
test eax, eax
je 0x348b68fd
mov eax, dword [eax]
mov edx, dword [ebp + 0xa8]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.34899c25
test eax, eax
je 0x348b68e7
movzx ecx, word [eax]
mov eax, dword [ebp + 0xc4]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.34899c25
test eax, eax
mov dword [esp + 0x60], eax
je 0x348b68fd
movzx edx, word [esp + 0x10]
cmp edx, dword [esp + 0x20]
jne 0x348b68fd
mov ecx, dword [ebp + 0xcc]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call fcn.34899c25
test eax, eax
mov dword [esp + 0x64], eax
je 0x348b68d8
movzx eax, word [esp + 0x10]
cmp eax, dword [esp + 0x20]
jne 0x348b68d8
cmp si, 2
je 0x348b678f
movzx eax, word [esp + 0x40]
mov ecx, dword [esp + eax*4 + 0x80]
cmp ecx, 0xffff
mov edx, dword [esp + 0x18]
mov dword [esp + 0x74], eax
lea eax, [esp + eax*4 + 0x80]
mov dword [esp + 0x7c], eax
je 0x348b6649
mov eax, dword [edx]
or dword [eax + ecx + 4], 0x200
add eax, ecx
test si, si
mov ecx, dword [eax + 4]
jne 0x348b64b5
or ecx, 2
mov dword [eax + 4], ecx
cmp dword [esp + 0x48], 0
je 0x348b64c0
or dword [eax + 4], 0x20
cmp word [esp + 0x30], 0
je 0x348b685a
cmp dword [esp + 0x6c], 0
jne 0x348b685a
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
lea edx, [ecx + ebx*8 + 0x18]
mov ecx, dword [0x348ca260]
push edx
push eax
push ecx
call fcn.348c502a
test eax, eax
je 0x348b68f6
mov edx, dword [esp + 0x18]
mov esi, dword [edx]
add esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x60]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x20]
push eax
push ecx
lea edx, [esi + 0x18]
push edx
call sub.msvcr80.dll_memcpy
xor ebx, ebx
add esp, 0xc
cmp dword [esp + 0x2c], ebx
jbe 0x348b659f
mov ebp, dword [esp + 0x64]
lea eax, [esi + 0x1d]
mov dword [esp + 0x20], eax
add ebp, 2
movzx ecx, word [ebp + 2]
movzx edx, word [ebp]
movzx eax, word [ebp - 2]
push ecx
push edx
push eax
call fcn.348b56a4
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + ebx*8]
mov ecx, dword [esp + 0x20]
mov dword [ecx - 5], edx
mov edx, dword [esp + 0x4c]
mov ecx, dword [edx + 0x14]
test byte [ecx + 0x120], 0x80
je 0x348b6582
cmp al, 4
je 0x348b6580
cmp al, 5
je 0x348b6580
cmp al, 6
jne 0x348b6582
mov al, 1
mov ecx, dword [esp + 0x20]
mov byte [ecx], al
add ebx, 1
add ecx, 8
add ebp, 8
cmp ebx, dword [esp + 0x2c]
mov dword [esp + 0x20], ecx
jb 0x348b6542
mov ebp, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
movzx ebx, byte [esp + 0x40]
and edi, 1
add edi, edi
and edx, 1
or edi, edx
mov edx, dword [esi + 4]
add edi, edi
and eax, 1
or edi, eax
mov eax, dword [esp + 0x38]
and ecx, 1
add edi, edi
or edi, ecx
mov cx, word [esp + 0x3c]
mov byte [esi], bl
movzx ebx, byte [esp + 0x2c]
and edx, 0xfffffe1f
shl edi, 5
or edi, edx
mov byte [esi + 1], bl
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov word [esi + 0xc], cx
mov eax, dword [ebp + 0xd0]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
call fcn.34899c25
test eax, eax
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
je 0x348b67d2
mov al, byte [eax]
mov byte [esp + 0x1f], al
movzx eax, al
sub eax, 0
je 0x348b67c5
sub eax, 1
jne 0x348b67d7
cmp bx, 1
mov eax, dword [edi]
jne 0x348b67bf
or byte [eax + 2], 2
jmp 0x348b67d7
mov eax, dword [esp + 0x24]
lea ecx, [eax + ebx*8 + 0x18]
mov eax, dword [0x348ca260]
push ecx
push edx
push eax
call fcn.348c502a
test eax, eax
je 0x348b68f6
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx]
add esi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x70]
push edx
push eax
lea ecx, [esi + 0x18]
push ecx
call sub.msvcr80.dll_memcpy
add esp, 0xc
test ebx, ebx
jbe 0x348b66ff
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
lea edx, [esi + 0x1d]
mov dword [esp + 0x5c], edx
add ebx, 2
mov dword [esp + 0x44], eax
movzx ecx, word [ebx + 2]
movzx edx, word [ebx]
movzx eax, word [ebx - 2]
push ecx
push edx
push eax
call fcn.348b56a4
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 0x14]
test byte [edx + 0x120], 0x80
je 0x348b66e4
cmp al, 4
je 0x348b66e2
cmp al, 5
je 0x348b66e2
cmp al, 6
jne 0x348b66e4
mov al, 1
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
add ecx, 8
add ebx, 8
sub dword [esp + 0x44], 1
mov dword [esp + 0x5c], ecx
jne 0x348b66b3
mov ebx, dword [esp + 0x2c]
mov al, byte [esp + 0x40]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
mov byte [esi], al
mov eax, edi
and eax, 1
add eax, eax
and ecx, 1
or eax, ecx
mov ecx, dword [esp + 0x48]
add eax, eax
and edx, 1
or eax, edx
mov edx, dword [esi + 4]
add eax, eax
and ecx, 1
or eax, ecx
shl eax, 5
and edx, 0xfffffe1f
or eax, edx
cmp word [esp + 0x30], 0
mov byte [esi + 1], bl
mov dword [esi + 4], eax
jne 0x348b674d
or eax, 2
mov dword [esi + 4], eax
mov eax, dword [esp + 0x74]
movzx ecx, byte [esp + eax + 0x100]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x7c]
shl ecx, 0xa
xor ecx, dword [esi + 4]
mov dword [edx], eax
and ecx, 0x400
xor ecx, dword [esi + 4]
lea eax, [eax + ebx*8 + 0x18]
or ecx, 1
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
add word [eax], 1
jmp 0x348b64c0
movzx edx, word [esp + 0x40]
mov ecx, dword [esp + edx*4 + 0x80]
cmp ecx, 0xffff
je 0x348b67b2
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
add eax, ecx
or dword [eax + 4], 0x400
mov byte [esp + edx + 0x100], 1
jmp 0x348b64cc
or byte [eax + 2], 0x10
jmp 0x348b67d7
cmp bx, 1
jne 0x348b67d7
mov eax, dword [edi]
or byte [eax + 2], bl
jmp 0x348b67d7
mov byte [esp + 0x1f], 0
mov eax, dword [ebp + 0x8c]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
call fcn.34899c25
test eax, eax
je 0x348b6822
mov cl, byte [eax]
movzx eax, cl
sub eax, 0
je 0x348b6814
sub eax, 1
jne 0x348b6824
cmp bx, 1
mov eax, dword [edi]
jne 0x348b680e
or byte [eax + 2], 8
jmp 0x348b6824
or byte [eax + 2], 0x20
jmp 0x348b6824
cmp bx, 1
jne 0x348b6824
mov eax, dword [edi]
or byte [eax + 2], 4
jmp 0x348b6824
xor cl, cl
cmp bx, 1
mov dl, byte [esp + 0x1f]
mov byte [esi + 0xe], dl
mov byte [esi + 0xf], cl
jne 0x348b6840
or dword [esi + 4], 4
mov eax, dword [edi]
or byte [eax + 2], 0x40
jmp 0x348b6844
or dword [esi + 4], 8
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov edi, dword [edi]
add word [edi], 1
lea edx, [ecx + eax*8 + 0x18]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x34]
push 0
push 0
push eax
call fcn.3489d30c
mov esi, eax
test esi, esi
jl 0x348b6920
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call fcn.3489c7c1
mov esi, eax
test esi, esi
jge 0x348b6260
jmp 0x348b6920
test byte [ebp + 0x120], 2
jne 0x348b68a6
push 1
push ebp
call fcn.348997ca
or dword [ebp + 0x120], 4
mov ecx, dword [0x348ebb48]
mov edx, dword [ecx]
push 0
push 0
push 0
push 0xffffe004
push 0
push 0
add ebp, 0x1b2
push ebp
push edx
call fcn.348c769e
mov esi, 0xfffffb4a
jmp 0x348b6920
mov eax, dword [esp + 0x28]
push eax
push ebp
call fcn.348b5ae7
mov esi, eax
jmp 0x348b6920
mov edx, dword [esp + 0x28]
push edx
push ebp
call fcn.348b5ae7
mov esi, eax
jmp 0x348b6920
mov esi, 0xfffffc0d
jmp 0x348b6920
mov ecx, dword [esp + 0x28]
push ecx
push ebp
call fcn.348b5ae7
mov esi, eax
jmp 0x348b6920
test esi, esi
jl 0x348b6920
mov edx, dword [esp + 0x34]
push edx
call fcn.3489c759
mov esi, eax
test esi, esi
jge 0x348b6948
mov eax, dword [esp + 0x18]
mov ecx, dword [0x348ca260]
push eax
push ecx
call fcn.348c5004
mov edx, dword [esp + 0x34]
push edx
call fcn.3489c7aa
test eax, eax
jge 0x348b6941
mov esi, eax
mov eax, esi
jmp 0x348b6a1c
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
test byte [eax + 2], 0xa
je 0x348b6a0d
movzx ecx, word [eax]
mov dword [eax + 4], 0
mov eax, dword [edi]
add eax, 8
test ecx, ecx
mov dword [esp + 0x38], 0
mov ebp, 0xc
mov dword [eax], 0
jbe 0x348b6a02
mov dword [esp + 0x3c], ecx
mov eax, dword [edi]
test byte [eax + ebp + 4], 4
movzx cx, byte [eax + ebp]
movzx edx, byte [eax + ebp + 1]
lea esi, [eax + ebp]
movzx ebx, cx
mov dword [esp + 0x54], edx
je 0x348b69ec
cmp byte [esi + 0xe], 1
jne 0x348b69c8
push esi
push eax
call fcn.348b5a0d
test eax, eax
je 0x348b69c8
mov ecx, dword [edi]
movzx eax, bx
push 1
add eax, 1
push eax
add ecx, 4
push ecx
call fcn.348bf117
cmp byte [esi + 0xf], 1
jne 0x348b69e4
mov eax, dword [edi]
movzx edx, bx
push 1
add edx, 1
push edx
add eax, 8
push eax
call fcn.348bf117
jmp 0x348b69ec
mov dword [esp + 0x38], 1
sub dword [esp + 0x3c], 1
mov ecx, dword [esp + 0x54]
lea ebp, [ebp + ecx*8 + 0x18]
jne 0x348b6986
cmp dword [esp + 0x38], 0
jne 0x348b6a0d
mov edx, dword [edi]
add edx, 8
mov dword [edx], 0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x4c], edi
mov dword [ecx], edi
xor eax, eax
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.348c86f8
add esp, 0x114
ret 8