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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fdcce
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x5365f0]
xor eax, esp
mov dword [esp + 0x330], eax
push ebx
push esi
push edi
mov eax, dword [0x5365f0]
xor eax, esp
push eax
lea eax, [esp + 0x348]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
mov ebx, ecx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], edi
mov word [esp + 0x54], ax
mov dword [esp + 0x350], edi
cmp dword [ebp + 0xc], 2
mov eax, dword [ebp + 8]
mov dword [0x539c38], eax
jne 0x421b57
cmp eax, 2
je 0x421b57
lea ecx, [esp + 0x38]
push 0x619
push ecx
mov dword [esp + 0x1c], 0x619
call fcn.004628f0
add esp, 8
mov byte [esp + 0x350], 1
mov edi, eax
lea esi, [esp + 0x54]
call fcn.00402140
mov byte [esp + 0x350], 0
cmp dword [esp + 0x4c], 8
jb 0x421a32
mov edx, dword [esp + 0x38]
push edx
call fcn.004d5559
add esp, 4
xor esi, esi
xor eax, eax
mov edi, 7
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], esi
mov word [esp + 0x38], ax
cmp dword [ebx + 0x4010d0], esi
je 0x421a68
mov eax, dword [ebx + 0x4010d0]
cmp eax, esi
je 0x421a62
push eax
push esi
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [ebx + 0x4010d0], esi
mov dword [0x539c40], esi
mov dword [0x539c44], esi
call fcn.004245a0
lea ecx, [esp + 0xe4]
push ecx
call fcn.0041f340
mov byte [esp + 0x350], 2
push esi
lea edx, [esp + 0x58]
push edx
or eax, 0xffffffff
lea ecx, [esp + 0x108]
call fcn.004022e0
push esi
lea eax, [esp + 0x58]
push eax
or eax, 0xffffffff
lea ecx, [esp + 0xec]
call fcn.004022e0
push ebx
lea ecx, [esp + 0xe8]
lea edx, [esp + 0x20]
call fcn.00417400
mov byte [esp + 0x350], 3
cmp dword [esp + 0x2c], esi
je 0x421b13
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
push esi
push 1
jae 0x421ae9
lea eax, [esp + 0x24]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
call fcn.00401c60
mov byte [esp + 0x374], 4
push 0x619
mov byte [esp + 0x378], 3
mov ecx, ebx
call fcn.004231b0
mov byte [esp + 0x350], 2
cmp dword [esp + 0x30], 8
jb 0x421b2f
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], dx
mov byte [esp + 0x350], dl
lea eax, [esp + 0xe4]
push eax
call fcn.00420320
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, 1
jne 0x421bec
lea ecx, [esp + 0x1c]
push 0x7a
push ecx
mov dword [esp + 0x1c], 0x616
call fcn.004628f0
add esp, 8
mov byte [esp + 0x350], 5
mov edi, eax
lea esi, [esp + 0x54]
call fcn.00402140
mov byte [esp + 0x350], 0
cmp dword [esp + 0x30], 8
jb 0x421ba6
mov edx, dword [esp + 0x1c]
push edx
call fcn.004d5559
add esp, 4
xor esi, esi
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], ax
cmp dword [ebx + 0x4010d0], esi
je 0x421bdb
mov eax, dword [ebx + 0x4010d0]
cmp eax, esi
je 0x421bd5
push eax
push esi
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [ebx + 0x4010d0], esi
mov dword [0x539c40], esi
mov dword [0x539c44], esi
jmp 0x421d2b
cmp eax, edi
jne 0x421c9f
lea ecx, [esp + 0x1c]
push 0x7b
push ecx
mov dword [esp + 0x1c], 0x617
call fcn.004628f0
add esp, 8
mov byte [esp + 0x350], 6
mov edi, eax
lea esi, [esp + 0x54]
call fcn.00402140
mov byte [esp + 0x350], 0
cmp dword [esp + 0x30], 8
jb 0x421c3a
mov edx, dword [esp + 0x1c]
push edx
call fcn.004d5559
add esp, 4
xor esi, esi
xor eax, eax
mov word [esp + 0x1c], ax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 7
cmp dword [ebx + 0x4010d0], esi
je 0x421c6f
mov eax, dword [ebx + 0x4010d0]
cmp eax, esi
je 0x421c69
push eax
push esi
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [ebx + 0x4010d0], esi
push 0x539c40
call fcn.004d7346
add esp, 4
push esi
call fcn.004241c0
push 0x423c70
push 0x36ee80
push esi
push esi
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x4010d0], eax
jmp 0x421d30
cmp eax, 2
jne 0x421ccb
lea ecx, [esp + 0x1c]
push 0x88
push ecx
mov dword [esp + 0x1c], 0x618
call fcn.004628f0
add esp, 8
mov byte [esp + 0x350], 7
jmp 0x421c13
cmp eax, 3
jne 0x421d32
lea ecx, [esp + 0x1c]
push 0x8c
push ecx
mov dword [esp + 0x1c], 0x616
call fcn.004628f0
add esp, 8
mov byte [esp + 0x350], 8
mov edi, eax
lea esi, [esp + 0x54]
call fcn.00402140
mov byte [esp + 0x350], 0
lea esi, [esp + 0x1c]
call fcn.00401ca0
lea esi, [ebx + 0x4010d0]
xor edi, edi
cmp dword [esi], edi
je 0x421d1f
call fcn.00423c50
mov dword [0x539c40], edi
mov dword [0x539c44], edi
call fcn.004245a0
xor edi, edi
lea edx, [esp + 0x8c]
push edx
call fcn.0041f340
mov byte [esp + 0x350], 9
push edi
lea eax, [esp + 0x58]
push eax
or eax, 0xffffffff
lea ecx, [esp + 0xb0]
call fcn.004022e0
push edi
lea ecx, [esp + 0x58]
push ecx
or eax, 0xffffffff
lea ecx, [esp + 0x94]
call fcn.004022e0
push ebx
lea ecx, [esp + 0x90]
lea edx, [esp + 0x74]
call fcn.00417400
mov byte [esp + 0x350], 0xa
cmp dword [esp + 0x80], edi
je 0x421df8
cmp dword [esp + 0x84], 8
mov eax, dword [esp + 0x70]
push edi
push 1
jae 0x421da8
lea eax, [esp + 0x78]
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x10], edi
xor edx, edx
mov ecx, eax
mov dword [esi + 0x14], 7
mov dword [esp + 0x3c], esp
mov word [esi], dx
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x421dc5
sub ecx, edi
sar ecx, 1
push ecx
call fcn.004027c0
mov byte [esp + 0x374], 0xb
mov eax, dword [esp + 0x38]
push eax
mov byte [esp + 0x378], 0xa
mov ecx, ebx
call fcn.004231b0
xor edi, edi
cmp dword [ebx + 0x4010c4], edi
je 0x421e05
call fcn.00422e10
xor ecx, ecx
push edi
mov eax, 0x517384
lea esi, [esp + 0x20]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], cx
call fcn.004027c0
mov byte [esp + 0x350], 0xc
push 0x2b
mov eax, str.Global63BC5703_CF06_42eb_9FDE_F08E84ABB741
call fcn.004027c0
xor ebx, ebx
lea ecx, [ecx]
push 0x1fe
lea eax, [esp + 0x142]
xor edx, edx
push edi
push eax
mov word [esp + 0x148], dx
call fcn.004da450
add esp, 0xc
push ebx
lea ecx, [esp + 0x140]
push 0x50ff30
push ecx
call fcn.004d7ee5
add esp, 0xc
push edi
lea eax, [esp + 0x20]
xor edx, edx
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], edi
mov word [esp + 0x40], dx
call fcn.004022e0
mov byte [esp + 0x350], 0xd
lea eax, [esp + 0x13c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x421eb0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x140]
lea ecx, [esp + 0x3c]
call fcn.004021b0
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x421edf
lea eax, [esp + 0x38]
push eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
cmp esi, edi
je 0x421efd
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x350], 0xc
cmp dword [esp + 0x4c], 8
jb 0x421f19
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
inc ebx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], edi
mov word [esp + 0x38], dx
cmp ebx, 0x14
jb 0x421e40
mov byte [esp + 0x350], 0xa
mov ebx, 8
cmp dword [esp + 0x30], ebx
jb 0x421f56
mov eax, dword [esp + 0x1c]
push eax
call fcn.004d5559
add esp, 4
mov esi, 7
xor ecx, ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], cx
mov byte [esp + 0x350], 9
cmp dword [esp + 0x84], ebx
jb 0x421f88
mov edx, dword [esp + 0x70]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], edi
mov word [esp + 0x70], ax
mov byte [esp + 0x350], al
lea ecx, [esp + 0x8c]
push ecx
call fcn.00420320
mov dword [esp + 0x350], 0xffffffff
cmp dword [esp + 0x68], ebx
jb 0x421fcf
mov edx, dword [esp + 0x54]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], edi
mov word [esp + 0x54], ax
mov ecx, dword [esp + 0x348]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x330]
xor ecx, esp
call fcn.004d5564
mov esp, ebp
pop ebp
ret 8