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

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x14c], 0
je 0x40b14e
call fcn.0041cc60
test eax, eax
je 0x40b14e
push dword [edi + 0x14c]
call fcn.0041cd40
add esp, 4
test eax, eax
je 0x40b352
push esi
mov esi, dword [esp + 0x14]
movzx eax, word [esi + 8]
test al, 1
je 0x40b17a
mov eax, dword [esi + 0x1c]
cdq
push edx
push eax
push esi
push str.event_queue_insert_timeout
push str._s:__p_fd__I64d__already_on_timeout
push 1
call fcn.0041bd20
add esp, 0x18
pop esi
pop edi
pop ecx
ret
sar eax, 4
not eax
and eax, 1
add dword [edi + 0x78], eax
mov eax, dword [edi + 0x7c]
cmp eax, dword [edi + 0x78]
push ebx
cmovle eax, dword [edi + 0x78]
mov dword [edi + 0x7c], eax
or word [esi + 8], 1
mov edx, dword [esi + 0x3c]
mov eax, edx
and eax, 0xf0000000
push ebp
cmp eax, 0x50000000
jne 0x40b28a
mov eax, edx
sar eax, 0x14
movzx eax, al
cmp eax, dword [edi + 0xb4]
jge 0x40b28a
mov eax, edx
sar eax, 0x14
movzx ecx, al
mov eax, dword [edi + 0xb0]
mov ebp, dword [eax + ecx*4]
mov eax, dword [ebp + 4]
lea ebx, [ebp + 4]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x40b22e
mov ebx, edx
and ebx, 0xfff00000
mov dword [esp + 0x10], ebx
mov edx, dword [ecx + 0x3c]
mov eax, edx
and eax, 0xfff00000
cmp eax, ebx
jne 0x40b3a9
mov edi, dword [esi + 0x38]
xor eax, eax
mov ebx, dword [ecx + 0x38]
cmp edi, ebx
jne 0x40b213
cmp dword [esi + 0x3c], edx
setge al
test eax, eax
jne 0x40b24c
mov eax, dword [ecx + 0x18]
mov ebx, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
test ecx, ecx
jne 0x40b1f2
mov ebx, dword [esp + 0x18]
mov eax, dword [ebp]
lea ecx, [esi + 0x14]
mov dword [ecx], eax
test eax, eax
je 0x40b27c
mov eax, dword [ebp]
mov dword [eax + 0x18], ecx
mov dword [ebp], esi
mov dword [esi + 0x18], ebp
pop ebp
pop ebx
pop esi
pop edi
pop ecx
ret
lea ebp, [ecx + 0x14]
mov ecx, dword [ebp]
lea eax, [esi + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x40b26a
mov dword [ecx + 0x18], eax
mov dword [ebp], esi
mov dword [esi + 0x18], ebp
pop ebp
pop ebx
pop esi
pop edi
pop ecx
ret
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [ebp], esi
mov dword [esi + 0x18], ebp
pop ebp
pop ebx
pop esi
pop edi
pop ecx
ret
mov dword [ebx], ecx
mov dword [ebp], esi
mov dword [esi + 0x18], ebp
pop ebp
pop ebx
pop esi
pop edi
pop ecx
ret
mov ebx, dword [edi + 0xdc]
mov eax, dword [edi + 0xe0]
lea ebp, [ebx + 1]
cmp eax, ebp
jae 0x40b2ea
test eax, eax
je 0x40b2a5
add eax, eax
jmp 0x40b2aa
mov eax, 8
mov edx, dword [0x46a740]
cmp eax, ebp
mov ecx, dword [edi + 0xd8]
cmovae ebp, eax
lea eax, [ebp*4]
push eax
push ecx
test edx, edx
je 0x40b2cc
call edx
jmp 0x40b2d1
call fcn.00435ef4
add esp, 8
test eax, eax
je 0x40b34c
mov ebx, dword [edi + 0xdc]
mov dword [edi + 0xd8], eax
mov dword [edi + 0xe0], ebp
lea eax, [ebx + 1]
mov dword [edi + 0xdc], eax
test ebx, ebx
je 0x40b340
nop word [eax + eax]
mov eax, dword [edi + 0xd8]
lea edx, [ebx - 1]
shr edx, 1
xor ecx, ecx
mov ebp, dword [eax + edx*4]
mov eax, dword [ebp + 0x38]
cmp eax, dword [esi + 0x38]
jne 0x40b31e
mov eax, dword [ebp + 0x3c]
cmp eax, dword [esi + 0x3c]
setg cl
test ecx, ecx
je 0x40b340
mov eax, dword [edi + 0xd8]
mov dword [eax + ebx*4], ebp
mov eax, dword [edi + 0xd8]
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x14], ebx
mov ebx, edx
test edx, edx
jne 0x40b300
mov eax, dword [edi + 0xd8]
mov dword [eax + ebx*4], esi
mov dword [esi + 0x14], ebx
pop ebp
pop ebx
pop esi
pop edi
pop ecx
ret
push 0x45b288
push 0x45b2a4
push 0xd26
push 0x45b2d8
push 0x45b2e0
push 0xdeaddead
call fcn.0041bd20
add esp, 0x18
push 0x45b304
push 0x45b320
push 0xd26
push 0x45b354
push 0x45b35c
push 2
call fcn.00434b42
add esp, 4
push eax
call fcn.004046e0
add esp, 0x18
call fcn.00435eff
push 0x45ac88
push 0x45aca8
push 0xce2
push 0x45ace0
push 0x45ace8
push 0xdeaddead
call fcn.0041bd20
add esp, 0x18
push str.insert_common_timeout_inorder
push str.is_same_common_timeout_e__ev_timeout__ev__ev_timeout_
push 0xce2
push 0x45ad64
push 0x45ad6c
push 2
call fcn.00434b42
add esp, 4
push eax
call fcn.004046e0
add esp, 0x18
call fcn.00435eff
int3