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

Disassembly:
sub esp, 0x20
xor eax, eax
cmp dword [esp + 0x68], 1
push ebx
setg al
push ebp
push esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x28], 6
push edi
mov dword [esp + 0x20], eax
lea ecx, [ecx]
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
sar eax, 1
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x3c], ecx
jle 0x434a9f
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
lea ecx, [edx + eax*4]
sub edi, edx
sub ebp, edx
sub ebx, edx
sub eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [edi + ecx - 4]
imul eax, dword [esp + 0x18]
sub ecx, 4
sar eax, 6
add eax, dword [ecx]
cmp eax, dword [ecx + ebp]
jge 0x434a84
cmp dword [esp + 0x14], 0
jne 0x434a84
mov esi, dword [esp + 0x78]
add esi, esi
add esi, esi
add esi, esi
cmp eax, esi
jl 0x434a99
add dword [esp + 0x10], esi
jmp 0x434a99
mov esi, dword [ebx + ecx]
mov dword [esp + 0x14], 1
cmp eax, esi
jl 0x434a95
mov eax, esi
add dword [esp + 0x10], eax
dec dword [esp + 0x24]
jne 0x434a53
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x10], eax
jle 0x434ab3
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
jmp 0x434abb
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
dec dword [esp + 0x2c]
jne 0x434a10
mov ecx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x3c], ecx
jle 0x434b67
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x6c]
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
sub eax, edx
sub ebx, edx
lea ecx, [edx + esi*4]
sub edi, edx
sub ebp, edx
sub esi, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
jmp 0x434b10
mov eax, dword [ecx + edi - 4]
imul eax, dword [esp + 0x1c]
sub ecx, 4
sar eax, 6
add eax, dword [ecx]
cmp eax, dword [ecx + ebp]
jge 0x434b49
cmp dword [esp + 0x14], 0
jne 0x434b49
mov edx, dword [esp + 0x78]
add edx, edx
add edx, edx
xor ebx, ebx
add edx, edx
cmp eax, edx
setl bl
lea eax, [ebx - 1]
mov ebx, dword [esp + 0x2c]
and eax, edx
jmp 0x434b51
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x28]
mov edx, dword [ecx + edx]
cmp eax, edx
cmovge eax, edx
add dword [esp + 0x10], eax
dec esi
mov dword [ebx + ecx], eax
jne 0x434b10
mov ebp, dword [esp + 0x3c]
lea edi, [ebp - 1]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], edi
cmp edi, dword [esp + 0x40]
jle 0x434d16
mov eax, dword [esp + 0x78]
lea ecx, [eax*8]
mov edx, ebp
lea eax, [edx*4 - 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
lea esp, [esp]
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x20]
mov edx, dword [esp + 0x38]
movsx esi, word [eax + edx*2]
movsx ebx, word [eax + ebp*2]
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x10]
sub ebx, esi
xor edx, edx
mov eax, ecx
div ebx
mov edx, dword [esp + 0x34]
mov edx, dword [edx + 0x20]
movsx edx, word [edx + edi*2]
sub esi, edx
imul ebx, eax
sub ecx, ebx
add esi, ecx
test esi, esi
jle 0x434bf4
mov edx, dword [esp + 0x34]
mov edx, dword [edx + 0x20]
movsx esi, word [edx + edi*2]
mov ebx, dword [esp + 0x38]
movsx edx, word [edx + ebx*2]
sub edx, esi
add edx, ecx
jmp 0x434bf6
xor edx, edx
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 0x20]
movsx esi, word [ecx + edi*2]
movsx ecx, word [ecx + ebp*2]
mov ebx, dword [esp + 0x6c]
sub ecx, esi
mov esi, ecx
imul esi, eax
add esi, edx
mov edx, dword [esp + 0x48]
mov eax, dword [edx + edi*4]
mov edx, dword [esp + 0x2c]
add esi, dword [ebx + edi*4]
add edx, 8
cmp eax, edx
jg 0x434c29
mov eax, edx
cmp esi, eax
jl 0x434cba
cmp dword [esp + 0x84], 0
je 0x434c98
xor eax, eax
cmp ebp, 0x11
jle 0x434c50
cmp edi, dword [esp + 0x88]
setge al
lea eax, [eax + eax + 7]
mov edx, dword [esp + 0x38]
add edx, 2
cmp ebp, edx
jle 0x434d24
imul eax, ecx
mov ecx, dword [esp + 0x7c]
shl eax, cl
add eax, eax
add eax, eax
add eax, eax
sar eax, 4
cmp esi, eax
jle 0x434c82
cmp edi, dword [esp + 0x8c]
jle 0x434d24
mov eax, dword [esp + 0x80]
push 1
push 0
push eax
call fcn.00424a90
add esp, 0xc
jmp 0x434cb2
mov ecx, dword [esp + 0x80]
push 1
push ecx
call fcn.00415870
add esp, 8
test eax, eax
jne 0x434d3e
add dword [esp + 0x10], 8
sub esi, 8
mov eax, dword [esp + 0x60]
mov edx, dword [ebx + edi*4]
add edx, eax
sub dword [esp + 0x10], edx
test eax, eax
jle 0x434cdc
mov eax, edi
sub eax, dword [esp + 0x38]
movzx eax, byte [eax + 0x453d6c]
mov dword [esp + 0x60], eax
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
cmp esi, eax
jl 0x434cf1
add dword [esp + 0x10], eax
mov dword [ebx + edi*4], eax
jmp 0x434cf8
mov dword [ebx + edi*4], 0
mov ebp, dword [esp + 0x24]
sub dword [esp + 0x28], 4
lea edi, [ebp - 1]
mov dword [esp + 0x24], edi
cmp edi, dword [esp + 0x40]
jg 0x434ba0
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x58]
add dword [esp + 0x50], ecx
mov ebx, dword [esp + 0x6c]
jmp 0x434d42
mov edx, dword [esp + 0x80]
push 1
push 1
push edx
mov dword [esp + 0x20], ebp
call fcn.00424a90
add esp, 0xc
jmp 0x434d42
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x60], 0
mov edi, dword [esp + 0x38]
jle 0x434da0
cmp dword [esp + 0x84], 0
je 0x434d80
mov esi, dword [esp + 0x5c]
mov eax, dword [esi]
cmp eax, ebp
jl 0x434d63
mov eax, ebp
mov edx, dword [esp + 0x80]
mov ecx, ebp
sub ecx, edi
inc ecx
mov dword [esi], eax
push ecx
sub eax, edi
push eax
push edx
call fcn.00424d90
add esp, 0xc
jmp 0x434daa
mov ecx, dword [esp + 0x80]
mov eax, ebp
sub eax, edi
inc eax
push eax
push ecx
call fcn.00415980
mov esi, dword [esp + 0x64]
add esp, 8
add eax, edi
mov dword [esi], eax
jmp 0x434daa
mov esi, dword [esp + 0x5c]
mov dword [esi], 0
cmp dword [esi], edi
jg 0x434db8
mov esi, dword [esp + 0x50]
add esi, dword [esp + 0x68]
jmp 0x434e08
cmp dword [esp + 0x68], 0
jle 0x434e04
cmp dword [esp + 0x84], 0
push 1
je 0x434de8
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
mov ecx, dword [esp + 0x84]
push eax
push ecx
call fcn.00424a90
mov esi, dword [esp + 0x5c]
add esp, 0xc
jmp 0x434e12
mov edx, dword [esp + 0x84]
push edx
call fcn.00415870
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x58]
add esp, 8
mov dword [ecx], eax
jmp 0x434e12
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x64]
mov dword [edx], 0
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x20]
movsx edx, word [eax + edi*2]
movsx ecx, word [eax + ebp*2]
sub esi, dword [esp + 0x10]
sub ecx, edx
mov eax, esi
xor edx, edx
div ecx
imul ecx, eax
sub esi, ecx
mov ecx, edi
cmp edi, ebp
jge 0x434e63
jmp 0x434e40
mov edx, dword [esp + 0x34]
mov edx, dword [edx + 0x20]
movsx edi, word [edx + ecx*2 + 2]
lea edx, [edx + ecx*2]
movsx edx, word [edx]
sub edi, edx
imul edi, eax
add dword [ebx + ecx*4], edi
inc ecx
cmp ecx, ebp
jl 0x434e40
mov edi, dword [esp + 0x38]
mov eax, edi
cmp edi, ebp
jge 0x434ea8
lea esp, [esp]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x20]
lea ecx, [edx + eax*2]
movsx edx, word [ecx + 2]
movsx ecx, word [ecx]
sub edx, ecx
cmp esi, edx
jge 0x434e8b
mov ecx, esi
jmp 0x434e9e
mov edx, dword [esp + 0x34]
mov ecx, dword [edx + 0x20]
lea edx, [ecx + eax*2]
movsx ecx, word [edx + 2]
movsx edx, word [edx]
sub ecx, edx
add dword [ebx + eax*4], ecx
inc eax
sub esi, ecx
cmp eax, ebp
jl 0x434e70
mov dword [esp + 0x60], 0
mov dword [esp + 0x50], edi
cmp edi, ebp
jge 0x4350e7
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x6c]
lea edi, [eax + ecx*4]
mov ecx, dword [esp + 0x4c]
sub ecx, edx
mov dword [esp + 0x28], ecx
mov ecx, edx
sub ecx, eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x74]
sub ecx, eax
mov dword [esp + 0x40], ecx
jmp 0x434ef0
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x20]
mov ebx, dword [esp + 0x50]
movsx ecx, word [eax + ebx*2]
movsx edx, word [eax + ebx*2 + 2]
mov ebp, dword [esp + 0x2c]
lea eax, [eax + ebx*2]
mov eax, dword [ebp + edi]
add eax, dword [esp + 0x60]
sub edx, ecx
mov ecx, dword [esp + 0x7c]
add ebp, edi
shl edx, cl
cmp edx, 1
jle 0x435048
mov ecx, dword [esp + 0x28]
mov esi, eax
sub esi, dword [ecx + ebp]
xor ecx, ecx
test esi, esi
setle cl
dec ecx
and ecx, esi
sub eax, ecx
cmp dword [esp + 0x78], 2
mov dword [esp + 0x38], ecx
mov dword [esp + 0x68], eax
mov dword [ebp], eax
jne 0x434f6a
cmp edx, 2
jle 0x434f6a
mov eax, dword [esp + 0x64]
cmp dword [eax], 0
jne 0x434f6a
mov ecx, dword [esp + 0x5c]
cmp ebx, dword [ecx]
jge 0x434f6a
mov eax, 1
jmp 0x434f6c
xor eax, eax
mov esi, edx
imul esi, dword [esp + 0x78]
add esi, eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x38]
mov eax, dword [esp + 0x50]
movsx eax, word [ecx + eax*2]
mov ecx, dword [esp + 0x7c]
add ecx, ecx
add ecx, ecx
add ecx, ecx
add eax, ecx
imul eax, esi
mov ecx, esi
imul ecx, ecx, 0x15
mov ebx, eax
sar ebx, 1
sub ebx, ecx
cmp edx, 2
jne 0x434faf
lea edx, [esi*8]
sar edx, 2
add ebx, edx
mov ecx, dword [esp + 0x68]
mov edx, esi
add ecx, ebx
shl edx, 4
cmp ecx, edx
jge 0x434fc3
sar eax, 2
jmp 0x434fd3
lea edx, [esi + esi*2]
add edx, edx
add edx, edx
add edx, edx
cmp ecx, edx
jge 0x434fd5
sar eax, 3
add ebx, eax
mov eax, dword [esp + 0x68]
xor edx, edx
lea eax, [eax + esi*4]
add eax, ebx
sets dl
dec edx
and eax, edx
xor edx, edx
div esi
shr eax, 3
mov dword [edi], eax
imul eax, dword [esp + 0x78]
mov edx, dword [ebp]
mov ecx, edx
sar ecx, 3
cmp eax, ecx
jle 0x43500b
mov ecx, dword [esp + 0x20]
sar edx, cl
sar edx, 3
mov dword [edi], edx
mov eax, dword [edi]
cmp eax, 8
jl 0x435017
mov eax, 8
mov dword [edi], eax
lea edx, [esi*8]
imul edx, eax
mov eax, dword [ebp]
add eax, ebx
xor ecx, ecx
cmp edx, eax
mov edx, dword [esp + 0x40]
setge cl
mov dword [edx + edi], ecx
mov eax, dword [edi]
imul eax, dword [esp + 0x78]
add eax, eax
add eax, eax
add eax, eax
sub dword [ebp], eax
jmp 0x43507b
mov edx, dword [esp + 0x78]
add edx, edx
add edx, edx
add edx, edx
mov ecx, eax
sub ecx, edx
mov edx, 0
sets dl
dec edx
and ecx, edx
sub eax, ecx
mov dword [ebp], eax
mov eax, dword [esp + 0x40]
mov dword [edi], 0
mov dword [esp + 0x38], ecx
mov dword [eax + edi], 1
cmp dword [esp + 0x38], 0
jle 0x4350c9
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x38]
mov esi, dword [edi]
add ecx, 3
mov edx, ebx
sar edx, cl
mov eax, 8
sub eax, esi
cmp edx, eax
jge 0x4350a0
mov eax, edx
add esi, eax
imul eax, dword [esp + 0x78]
add eax, eax
add eax, eax
mov ecx, ebx
sub ecx, dword [esp + 0x60]
xor edx, edx
add eax, eax
cmp eax, ecx
mov ecx, dword [esp + 0x40]
setge dl
sub ebx, eax
mov dword [edi], esi
mov dword [esp + 0x38], ebx
mov dword [ecx + edi], edx
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
inc eax
add edi, 4
mov dword [esp + 0x60], edx
mov dword [esp + 0x50], eax
cmp eax, dword [esp + 0x14]
jl 0x434ef0
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x60]
mov dword [eax], ecx
cmp ebx, edi
jge 0x43513b
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x74]
mov ebp, dword [esp + 0x20]
sub edx, ecx
sub esi, ecx
lea eax, [ecx + ebx*4]
sub edi, ebx
mov ebx, dword [eax + edx]
mov ecx, ebp
sar ebx, cl
xor ecx, ecx
sar ebx, 3
mov dword [eax], ebx
mov dword [eax + edx], 0
cmp dword [eax], 1
setl cl
add eax, 4
dec edi
mov dword [eax + esi - 4], ecx
jne 0x435116
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret