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

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x430d60
cmp dword [ecx + 0x1c], 1
je 0x430d30
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, dword [esp + 0x70]
jle 0x430da0
cmp eax, 1
je 0x430da0
cmp byte [ebp], 0
je 0x430db0
mov byte [ebp], 0
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
cmp eax, 1
jle 0x431119
lea eax, [esp + 0x48]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x30], eax
jmp 0x430cf4
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x34]
mov edx, dword [esp + 0x48]
mov esi, dword [ebp + 0x28]
shl ecx, 4
mov edi, dword [ebp + 0x2c]
mov dword [esp + 0x3c], eax
lea ebx, [eax + ecx]
mov dword [eax + ecx], edx
add esi, 4
mov dword [eax + ecx + 4], 0
mov eax, dword [ebx]
adc edi, 0
mov edx, dword [ebx + 4]
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 0x431100
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 0x431138
mov eax, dword [ebp + 0x24]
mov dword [esp + 8], 4
mov dword [esp], 0x5a57c8
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 0x430c48
test esi, esi
mov eax, 0xfffffffa
cmovns esi, eax
jmp 0x430d84
mov eax, dword [ecx + 0x24]
mov dword [esp], 0x5a57c8
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 edi, dword [esp + 0x70]
test edi, edi
jns 0x430bf2
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 0x430d84
mov eax, dword [ebp + 0x30]
cmp eax, dword [esp + 0x70]
je 0x430e24
mov ebx, dword [esp + 0x70]
mov edx, dword [ebp + 0x34]
shl ebx, 4
add edx, ebx
cmp byte [edx + 8], 0
jne 0x430e1d
mov eax, dword [edx]
mov ecx, dword [ebp + 0x28]
mov edx, dword [edx + 4]
mov esi, dword [ebp + 0x2c]
xor ecx, eax
xor esi, edx
or esi, ecx
je 0x430e1d
mov dword [esp + 0x4c], edx
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x48], eax
mov dword [esp + 8], eax
lea eax, [esp + 0x48]
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 0x430d84
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 esi, dword [esp + 0x78]
test esi, esi
je 0x431110
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
shl edi, 4
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x1c]
lea edx, [eax + edi]
cmp byte [edx + 8], 0
jne 0x43108c
mov esi, dword [edx]
mov edx, dword [edx + 4]
mov ebx, edx
or ebx, esi
jne 0x430f9d
mov edx, dword [ebp + 0x34]
add edx, edi
cmp byte [edx + 8], 0
jne 0x431170
mov eax, dword [edx]
mov ebx, dword [edx + 4]
mov esi, dword [ebp + 0x28]
mov edi, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
xor esi, eax
xor edi, ebx
or edi, esi
je 0x430ed3
mov dword [esp + 0x48], eax
mov dword [esp + 8], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x4c], ebx
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 0x430d84
mov eax, dword [ebp + 0x34]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x24]
mov edx, dword [eax + ebx + 4]
mov eax, dword [eax + ebx]
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], 0x5a57c8
call edx
mov esi, eax
cmp eax, 4
jne 0x430d20
mov esi, dword [esp + 0x1c]
mov eax, dword [ebp + 0x38]
mov ebx, dword [esp + 0x48]
lea edx, [eax + esi]
mov dword [eax + esi + 4], 0
mov dword [eax + esi], ebx
mov ebx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x2c]
mov ecx, dword [edx]
add ebx, 4
adc esi, 0
mov dword [esp + 0x30], ebx
mov dword [ebp + 0x28], ebx
mov ebx, dword [edx + 4]
mov dword [esp + 0x34], esi
mov dword [ebp + 0x2c], esi
mov esi, ecx
mov edi, ebx
add esi, 0xffffffff
adc edi, 0xffffffff
mov dword [esp + 0x28], esi
mov esi, 0
mov dword [esp + 0x2c], edi
mov edi, 8
cmp edi, dword [esp + 0x28]
mov edi, esi
sbb edi, dword [esp + 0x2c]
jae 0x431100
mov esi, ecx
mov edi, dword [esp + 0x1c]
or esi, ebx
sete byte [edx + 8]
add ecx, 0xfffffff6
adc ebx, 0xffffffff
mov dword [edx], ecx
mov ecx, dword [ebp + 0x34]
mov dword [edx + 4], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x34]
mov dword [ecx + edi], ebx
mov dword [ecx + edi + 4], esi
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x43108c
mov esi, dword [edx]
mov edx, dword [edx + 4]
mov edi, dword [esp + 0x20]
mov ebx, edi
sar ebx, 0x1f
cmp esi, edi
sbb edx, ebx
cmovge esi, edi
test esi, esi
jne 0x431090
mov ebx, dword [esp + 0x1c]
mov edx, dword [eax + ebx + 4]
or edx, dword [eax + ebx]
jne 0x430e46
mov eax, dword [ebp + 0x24]
mov dword [esp + 8], 4
mov dword [esp], 0x5a57c8
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 0x430d20
mov eax, dword [esp + 0x48]
mov ecx, dword [ebp + 0x28]
mov edi, dword [esp + 0x1c]
add edi, dword [ebp + 0x34]
mov dword [edi], eax
mov ebx, dword [ebp + 0x2c]
add ecx, 4
mov esi, edi
mov eax, dword [edi]
mov dword [edi + 4], 0
mov edx, dword [edi + 4]
adc ebx, 0
mov dword [esp + 0x30], ecx
mov edi, 8
mov dword [ebp + 0x28], ecx
mov ecx, eax
add ecx, 0xffffffff
mov dword [esp + 0x34], ebx
mov dword [ebp + 0x2c], ebx
mov ebx, edx
adc ebx, 0xffffffff
mov dword [esp + 0x28], ecx
cmp edi, dword [esp + 0x28]
mov dword [esp + 0x2c], ebx
mov ebx, 0
sbb ebx, dword [esp + 0x2c]
jae 0x431100
mov ebx, eax
or ebx, edx
sete byte [esi + 8]
add eax, 0xfffffff6
adc edx, 0xffffffff
add eax, dword [esp + 0x30]
adc edx, dword [esp + 0x34]
mov dword [esi], eax
mov dword [esi + 4], edx
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x431110
mov eax, dword [ebp + 0x38]
mov edi, dword [esp + 0x1c]
lea edx, [eax + edi]
cmp byte [edx + 8], 0
je 0x430e57
mov esi, dword [esp + 0x20]
mov eax, dword [ebp + 0x24]
mov dword [esp + 8], esi
mov dword [esp], 0x5a57c8
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 0x430d84
je 0x431170
mov edi, dword [ebp + 0x34]
mov ebx, dword [esp + 0x1c]
cdq
add dword [ebp + 0x28], eax
adc dword [ebp + 0x2c], edx
add edi, ebx
add dword [edi], eax
adc dword [edi + 4], edx
mov edi, dword [ebp + 0x38]
add edi, ebx
sub dword [edi], eax
sbb dword [edi + 4], edx
add dword [esp + 0x74], eax
sub dword [esp + 0x20], eax
cmp byte [edi + 8], 0
jne 0x43106c
mov eax, dword [edi + 4]
or eax, dword [edi]
jne 0x43106c
jmp 0x430fc6
mov esi, 0xfffffffa
jmp 0x430d84
mov esi, dword [esp + 0x78]
jmp 0x430d84
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 ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov dword [ebp + 0x30], 0
mov ecx, dword [esp + 0x2c]
mov dword [ebx], edx
mov dword [ebx + 4], ecx
mov byte [ebx + 8], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov byte [eax + 8], 0
xor eax, eax
jmp 0x430db3
mov esi, dword [esp + 0x78]
sub esi, dword [esp + 0x20]
jmp 0x430d84