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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x18], ebx
cmp byte [ecx + 0x29], 0
je 0x421445
add dword [ebx + 0x20], 0xffffffff
jns 0x421445
int3
mov byte [ebx + 0x84], 0
mov eax, dword [0x528294]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4214bd
call fcn.004338b0
mov esi, eax
test esi, esi
jne 0x42146b
mov eax, 0x51f32c
jmp 0x4214b1
mov ecx, str.toplevel
call fcn.0043d0c0
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], eax
test eax, eax
jne 0x4214b5
add esi, 4
mov byte [esp + 0x17], al
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x44]
mov edx, 0x431750
push eax
mov ecx, str.toplevel
call fcn.0043d130
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 8]
mov dword [0x528294], eax
mov dword [esp + 0x58], 0
test byte [eax], 0x19
je 0x4215cb
mov edi, dword [ecx + 0x14]
mov esi, dword [ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
lea eax, [esp + 0x90]
push eax
call dword [0x51f2dc]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push ecx
mov eax, esp
push 0
push 0
mov dword [eax], ecx
mov dword [eax + 4], edx
call fcn.004145e0
mov dword [esp + 0x98], eax
add esp, 0x10
mov eax, dword [esp + 0x94]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x80], str.src_file
mov dword [esp + 0x84], str.src_func
mov word [esp + 0xc], 0x606
mov dword [esp + 0x98], esi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], eax
call fcn.004338b0
push 0
push 0
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x90]
push ecx
push 2
lea ecx, [esp + 0xa0]
push ecx
push ebx
push 0
push 0
push 0
push 0
push 0
push str.MessageLoop::RunTask
push esi
push 0x58
lea ecx, [esp + 0xe8]
push ecx
mov ecx, eax
call fcn.00431e00
mov ebx, dword [esp + 0x18]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], str.MessageLoop::RunTask
mov dword [esp + 0x64], ecx
mov dword [esp + 0x58], eax
cmp dword [0x528344], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
je 0x421607
mov ecx, dword [0x528344]
test ecx, ecx
je 0x421607
mov dword [esp + 0x1c], eax
call fcn.004305e0
lea ecx, [eax + 0x10]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 2
cmp eax, 0x10
jae 0x421607
lea eax, [esp + 0x1c]
push eax
call fcn.00422ae0
mov eax, dword [ebx + 0x94]
lea ecx, [ebx + 0x90]
cmp eax, dword [ecx + 8]
jne 0x42163a
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
jmp 0x421644
push ecx
lea ecx, [esp + 0x28]
call fcn.00422970
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call fcn.00422b50
test al, al
jne 0x4216ef
nop word [eax + eax]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
test ebx, ebx
je 0x4216b8
cmp byte [ebx + 5], 0
je 0x4216b8
test edi, edi
je 0x4216b8
mov ecx, dword [edi + 8]
sub ecx, dword [edi + 4]
mov eax, dword [esp + 0x30]
sar ecx, 2
cmp ecx, eax
cmovb eax, ecx
cmp esi, eax
jae 0x4216b8
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi*4]
jmp 0x4216ba
xor ecx, ecx
mov eax, dword [ecx]
push dword [ebp + 8]
call dword [eax]
test ebx, ebx
je 0x4216dd
cmp byte [ebx + 5], 0
je 0x4216dd
test edi, edi
je 0x4216dd
inc esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], esi
call fcn.00422c10
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x28]
call fcn.00422b50
test al, al
je 0x421680
mov ecx, dword [esp + 0x48]
or eax, 0xffffffff
test ecx, ecx
je 0x421784
cmp byte [ecx + 5], 0
je 0x421772
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x421772
add dword [edx + 0x10], eax
jne 0x421772
xor ebx, ebx
mov dword [esp + 0x20], 0
cmp byte [ecx + 5], bl
lea eax, [esp + 0x20]
push eax
cmovne ebx, edx
mov dword [esp + 0x20], ebx
mov esi, dword [ebx + 8]
mov edx, esi
mov ecx, dword [ebx + 4]
call fcn.00422e00
mov edi, eax
add esp, 4
mov eax, dword [ebx + 4]
cmp edi, eax
jne 0x42174d
cmp esi, dword [ebx + 8]
jne 0x42174d
mov dword [ebx + 8], eax
jmp 0x42176b
cmp edi, esi
je 0x42176b
mov ebx, dword [ebx + 8]
sub ebx, esi
push ebx
push esi
push edi
call fcn.004a8100
mov ecx, dword [esp + 0x28]
lea eax, [ebx + edi]
add esp, 0xc
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x48]
or eax, 0xffffffff
lock xadd dword [ecx], eax
sub eax, 1
jne 0x421784
push ecx
call fcn.0046101e
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x421817
cmp byte [eax + 5], 0
je 0x4217fe
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4217fe
add dword [ecx + 0x10], 0xffffffff
jne 0x4217fe
xor ebx, ebx
mov dword [esp + 0x6c], 0
cmp byte [eax + 5], bl
lea eax, [esp + 0x6c]
push eax
cmovne ebx, ecx
mov dword [esp + 0x24], ebx
mov esi, dword [ebx + 8]
mov edx, esi
mov ecx, dword [ebx + 4]
call fcn.00422e00
mov edi, eax
add esp, 4
mov eax, dword [ebx + 4]
cmp edi, eax
jne 0x4217e0
cmp esi, dword [ebx + 8]
jne 0x4217e0
mov dword [ebx + 8], eax
jmp 0x4217fe
cmp edi, esi
je 0x4217fe
mov ebx, dword [ebx + 8]
sub ebx, esi
push ebx
push esi
push edi
call fcn.004a8100
mov ecx, dword [esp + 0x2c]
lea eax, [edi + ebx]
add esp, 0xc
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x24]
or eax, 0xffffffff
lock xadd dword [ecx], eax
sub eax, 1
jne 0x421817
push ecx
call fcn.0046101e
add esp, 4
mov ebx, dword [esp + 0x18]
push dword [ebp + 8]
push str.MessageLoop::PostTask
lea ecx, [ebx + 0xa8]
call fcn.00436580
mov eax, dword [ebx + 0x94]
lea ecx, [ebx + 0x90]
cmp eax, dword [ecx + 8]
jne 0x421861
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
jmp 0x42186b
push ecx
lea ecx, [esp + 0x38]
call fcn.00422970
lea eax, [esp + 0x70]
mov dword [esp + 0x70], 0
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
call fcn.00422b50
test al, al
jne 0x421914
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
test ebx, ebx
je 0x4218d8
cmp byte [ebx + 5], 0
je 0x4218d8
test edi, edi
je 0x4218d8
mov ecx, dword [edi + 8]
sub ecx, dword [edi + 4]
mov eax, dword [esp + 0x40]
sar ecx, 2
cmp ecx, eax
cmovb eax, ecx
cmp esi, eax
jae 0x4218d8
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi*4]
jmp 0x4218da
xor ecx, ecx
mov eax, dword [ecx]
push dword [ebp + 8]
call dword [eax + 4]
test ebx, ebx
je 0x4218fe
cmp byte [ebx + 5], 0
je 0x4218fe
test edi, edi
je 0x4218fe
inc esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c], esi
call fcn.00422c10
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x38]
call fcn.00422b50
test al, al
je 0x4218a0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x70]
test esi, esi
je 0x421952
cmp byte [esi + 5], 0
je 0x42193d
mov eax, dword [esp + 0x74]
test eax, eax
je 0x42193d
add dword [eax + 0x10], 0xffffffff
jne 0x42193d
xor ecx, ecx
cmp byte [esi + 5], cl
cmovne ecx, eax
call fcn.00422a10
or eax, 0xffffffff
lock xadd dword [esi], eax
sub eax, 1
jne 0x421952
push esi
call fcn.0046101e
add esp, 4
lea ecx, [esp + 0x34]
call fcn.00422a80
mov byte [ebx + 0x84], 1
cmp dword [0x528344], 0
je 0x421985
mov eax, dword [0x528344]
test eax, eax
je 0x421985
call fcn.004305e0
mov ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
je 0x421985
add dword [eax + 0x14], 0xfffffffc
cmp dword [esp + 0x58], 0
je 0x4219b1
mov eax, dword [esp + 0x5c]
cmp byte [eax], 0
je 0x4219b1
call fcn.004338b0
push dword [esp + 0x68]
mov ecx, eax
push dword [esp + 0x68]
push dword [esp + 0x68]
push dword [esp + 0x68]
call fcn.00432bd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4