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

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
lea ecx, [ecx]
call fcn.00476870
mov esi, eax
mov eax, dword [esi + 0x48]
xor ebp, ebp
mov ecx, eax
cmp eax, ebp
je 0x4306d3
mov edx, dword [ecx + 4]
cmp edx, dword [eax + 4]
jge 0x4306ac
mov eax, ecx
mov ecx, dword [ecx]
cmp ecx, ebp
jne 0x4306a2
cmp eax, ebp
je 0x4306d3
mov ecx, dword [eax + 4]
cmp ecx, dword [esp + 0x44]
jge 0x4306d3
mov eax, dword [eax + 8]
mov edi, dword [esi + 0x44]
mov dword [esi + 0x44], ebp
call eax
mov dword [esi + 0x44], edi
mov edi, dword [esp + 0x10]
jmp 0x430690
lea esi, [edi + 0x280]
mov ecx, esi
call fcn.00476ce0
call fcn.004664f0
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x44]
cmp dword [eax + 0x74], edx
setne bl
test bl, bl
je 0x430721
cmp byte [esp + 0x48], 0
je 0x430721
mov ecx, dword [eax + 0x78]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
lea ecx, [edi + 0x298]
lea edx, [esp + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, edx
mov dword [edi + 0x29c], edx
mov dword [eax + 0x78], ecx
mov ecx, esi
call fcn.00476d20
test bl, bl
je 0x4308c1
cmp byte [esp + 0x48], 0
je 0x4308e6
call fcn.00476870
mov ebx, dword [esp + 0x10]
mov edi, eax
cmp dword [edi + 0x58], ebp
je 0x4308d0
cmp dword [ebx + 0x27c], ebp
jg 0x4308d0
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x298]
push ebp
push eax
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4308b0
mov edx, dword [edi + 0x44]
mov dword [esp + 0x14], edx
mov dword [edi + 0x44], ebp
lea esp, [esp]
mov eax, dword [edi + 0x58]
push 1
push ebp
push ebp
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x430866
jmp 0x4307c0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [ebx + 0x298]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4308a9
mov ecx, esi
call fcn.00476ce0
call fcn.004664f0
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x44]
cmp dword [eax + 0x74], ecx
sete bl
test bl, bl
je 0x43083c
lea ecx, [eax + 0x78]
mov eax, dword [ecx]
cmp eax, ebp
je 0x43083c
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x29c]
lea esp, [esp]
cmp eax, edx
je 0x43082e
mov ecx, eax
mov eax, dword [eax]
cmp eax, ebp
jne 0x430820
jmp 0x43083c
mov eax, dword [eax]
mov dword [ecx], eax
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x29c], ebp
mov ecx, esi
call fcn.00476d20
test bl, bl
jne 0x4308a5
mov edx, dword [edi + 0x58]
push 1
push ebp
push ebp
push edx
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, dword [esp + 0x10]
test eax, eax
jne 0x4307c0
mov ecx, dword [ebx + 0x298]
mov dword [esp + 0x48], ecx
push 0x4ff
push 0xffffffffffffffff
push ebp
lea edx, [esp + 0x54]
push edx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
jne 0x4308a9
mov eax, dword [edi + 0x58]
push ebp
push ebp
push ebp
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x430870
jmp 0x4307a0
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [edi + 0x44], edx
lea ecx, [ebx + 0x298]
call fcn.0041cc20
mov dword [ebx + 0x29c], ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x30
ret 8
mov ecx, ebx
call fcn.0042fad0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x30
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 8