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

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x70]
test esi, esi
jne 0x435490
cmp dword [ecx + 0x1c], 1
je 0x435460
lea eax, [ecx + 4]
mov dword [esp + 0x38], eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
mov eax, dword [ebp + 0x1c]
cmp eax, 1
je 0x4354d0
cmp eax, dword [esp + 0x70]
jle 0x4354d0
cmp byte [ebp], 0
je 0x4354e0
mov byte [ebp], 0
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
cmp eax, 1
jle 0x435829
lea eax, [esp + 0x48]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x30], eax
jmp 0x435424
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x34]
mov edi, dword [esp + 0x48]
mov esi, dword [ebp + 0x28]
shl ecx, 4
mov dword [esp + 0x3c], eax
lea ebx, [eax + ecx]
mov dword [eax + ecx], edi
mov edi, dword [ebp + 0x2c]
add esi, 4
mov dword [eax + ecx + 4], 0
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
adc edi, 0
mov dword [esp + 0x28], esi
mov dword [ebp + 0x28], esi
mov esi, eax
add esi, 0xffffffff
mov dword [esp + 0x2c], edi
mov dword [ebp + 0x2c], edi
mov edi, edx
adc edi, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
mov edi, 8
cmp edi, dword [esp + 0x20]
mov edi, 0
sbb edi, dword [esp + 0x24]
jae 0x435810
mov edi, eax
or edi, edx
sete byte [ebx + 8]
add eax, 0xfffffff6
adc edx, 0xffffffff
add eax, dword [esp + 0x28]
adc edx, dword [esp + 0x2c]
mov dword [ebx], eax
mov eax, dword [ebp + 0x38]
mov dword [ebx + 4], edx
add ecx, eax
add dword [esp + 0x1c], 1
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov byte [ecx + 8], 0
mov ecx, dword [esp + 0x1c]
cmp dword [ebp + 0x1c], ecx
jle 0x435848
mov eax, dword [ebp + 0x24]
mov dword [esp + 8], 4
mov dword [esp], 0x5a7a08
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call dword [ebp + 0x20]
mov esi, eax
cmp eax, 4
je 0x435378
test esi, esi
mov eax, 0xfffffffa
cmovns esi, eax
jmp 0x4354b4
mov eax, dword [ecx + 0x24]
mov dword [esp], 0x5a7a08
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
call dword [ecx + 0x20]
add esp, 0x5c
mov esi, eax
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret 0xc
lea eax, [ecx + 4]
mov esi, 0xffffffff
mov dword [esp + 0x38], eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
mov ebx, dword [esp + 0x70]
test ebx, ebx
jns 0x435322
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
sub esp, 4
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov esi, 0xffffffff
jmp 0x4354b4
mov eax, dword [ebp + 0x30]
cmp eax, dword [esp + 0x70]
je 0x435554
mov ebx, dword [esp + 0x70]
mov edx, dword [ebp + 0x34]
shl ebx, 4
add edx, ebx
cmp byte [edx + 8], 0
jne 0x43554d
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov esi, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x28]
xor esi, ecx
xor edx, eax
or edx, esi
je 0x43554d
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x48], eax
mov dword [esp + 8], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], str.seek_input
call dword [ebp + 0x20]
mov esi, eax
test eax, eax
js 0x4354b4
mov eax, dword [ebp + 0x34]
mov edx, dword [eax + ebx + 4]
mov eax, dword [eax + ebx]
mov dword [ebp + 0x2c], edx
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x70]
mov dword [ebp + 0x30], eax
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x435820
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
shl edi, 4
mov dword [esp + 0x1c], eax
jmp 0x435792
mov esi, dword [edx]
mov edx, dword [edx + 4]
mov ecx, esi
or ecx, edx
jne 0x4356c2
mov edx, dword [ebp + 0x34]
add edx, edi
cmp byte [edx + 8], 0
jne 0x435880
mov eax, dword [edx]
mov ebx, dword [ebp + 0x28]
mov esi, dword [edx + 4]
mov ecx, dword [ebp + 0x24]
xor ebx, eax
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x20], ebx
mov ebx, dword [ebp + 0x2c]
xor ebx, esi
or ebx, dword [esp + 0x20]
je 0x4355f6
mov dword [esp + 0x48], eax
mov dword [esp + 8], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x4c], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], str.seek_input
call edx
mov esi, eax
test eax, eax
js 0x4354b4
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x24]
mov edx, dword [eax + edi + 4]
mov eax, dword [eax + edi]
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], edx
mov edx, dword [ebp + 0x20]
lea eax, [esp + 0x48]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov dword [esp], 0x5a7a08
call edx
mov esi, eax
cmp eax, 4
jne 0x435450
mov eax, dword [ebp + 0x38]
mov ebx, dword [esp + 0x48]
mov esi, dword [ebp + 0x2c]
mov dword [eax + edi], ebx
mov ebx, dword [ebp + 0x28]
lea edx, [eax + edi]
mov dword [eax + edi + 4], 0
add ebx, 4
mov dword [esp + 0x20], edx
adc esi, 0
mov dword [esp + 0x30], ebx
mov dword [ebp + 0x28], ebx
mov ebx, dword [edx]
mov dword [esp + 0x34], esi
mov dword [ebp + 0x2c], esi
mov esi, dword [edx + 4]
mov edx, ebx
add edx, 0xffffffff
mov ecx, esi
mov dword [esp + 0x28], edx
adc ecx, 0xffffffff
mov dword [esp + 0x2c], ecx
mov ecx, 8
cmp ecx, dword [esp + 0x28]
mov ecx, 0
sbb ecx, dword [esp + 0x2c]
jae 0x435810
mov ecx, dword [esp + 0x20]
mov edx, ebx
or edx, esi
sete byte [ecx + 8]
add ebx, 0xfffffff6
adc esi, 0xffffffff
mov ecx, ebx
mov ebx, esi
mov esi, dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [ebp + 0x34]
mov dword [esi + 4], ebx
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [ecx + edi], ebx
mov dword [ecx + edi + 4], esi
test edx, edx
je 0x4357a2
mov ebx, dword [esp + 0x20]
mov esi, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x1c]
mov ebx, ecx
sar ebx, 0x1f
cmp esi, ecx
sbb edx, ebx
cmovl ecx, esi
test ecx, ecx
jne 0x4357a6
mov edx, dword [eax + edi + 4]
or edx, dword [eax + edi]
jne 0x435795
mov eax, dword [ebp + 0x24]
mov dword [esp + 8], 4
mov dword [esp], 0x5a7a08
mov dword [esp + 0xc], eax
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
call dword [ebp + 0x20]
mov esi, eax
cmp eax, 4
jne 0x435450
mov esi, dword [ebp + 0x34]
mov eax, dword [esp + 0x48]
mov edx, dword [ebp + 0x2c]
add esi, edi
mov dword [esi], eax
mov eax, dword [ebp + 0x28]
mov dword [esi + 4], 0
add eax, 4
adc edx, 0
mov dword [esp + 0x28], eax
mov dword [ebp + 0x28], eax
mov eax, dword [esi]
mov dword [esp + 0x2c], edx
mov dword [ebp + 0x2c], edx
mov edx, dword [esi + 4]
mov ecx, eax
add ecx, 0xffffffff
mov ebx, edx
mov dword [esp + 0x20], ecx
adc ebx, 0xffffffff
xor ecx, ecx
mov dword [esp + 0x24], ebx
mov ebx, 8
cmp ebx, dword [esp + 0x20]
sbb ecx, dword [esp + 0x24]
jae 0x435810
mov ebx, eax
or ebx, edx
sete byte [esi + 8]
add eax, 0xfffffff6
adc edx, 0xffffffff
add eax, dword [esp + 0x28]
adc edx, dword [esp + 0x2c]
mov dword [esi], eax
mov dword [esi + 4], edx
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x435820
mov eax, dword [ebp + 0x38]
lea edx, [eax + edi]
cmp byte [edx + 8], 0
je 0x435578
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x24]
mov dword [esp + 8], ecx
mov dword [esp], 0x5a7a08
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
call dword [ebp + 0x20]
mov esi, eax
test eax, eax
js 0x4354b4
je 0x435880
mov ecx, dword [ebp + 0x34]
cdq
add dword [ebp + 0x28], eax
adc dword [ebp + 0x2c], edx
add ecx, edi
add dword [ecx], eax
adc dword [ecx + 4], edx
mov ecx, dword [ebp + 0x38]
add ecx, edi
sub dword [ecx], eax
sbb dword [ecx + 4], edx
add dword [esp + 0x74], eax
sub dword [esp + 0x1c], eax
cmp byte [ecx + 8], 0
jne 0x435786
mov eax, dword [ecx + 4]
or eax, dword [ecx]
jne 0x435786
jmp 0x4356e7
mov esi, 0xfffffffa
jmp 0x4354b4
mov esi, dword [esp + 0x78]
jmp 0x4354b4
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x38]
lea esi, [esi]
nop
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x28]
mov dword [ebp + 0x30], 0
mov esi, dword [esp + 0x2c]
mov dword [edi], ebx
mov dword [edi + 4], esi
mov byte [edi + 8], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov byte [eax + 8], 0
xor eax, eax
jmp 0x4354e3
mov esi, dword [esp + 0x78]
sub esi, dword [esp + 0x1c]
jmp 0x4354b4