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

Disassembly:
sub esp, 0x7c
push ebx
mov ebx, dword [esp + 0x84]
push ebp
push esi
mov eax, dword [ebx]
mov esi, ecx
xor ecx, ecx
push edi
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
mov dword [esp + 0x1c], esi
jg 0x451c5a
mov edx, dword [eax - 4]
test edx, edx
jge 0x451ca3
mov edi, dword [eax - 8]
test edi, edi
mov dword [esp + 0x3c], edi
jle 0x451c67
mov ecx, edi
push ecx
mov ecx, ebx
call fcn.004012f0
test eax, eax
jne 0x451c79
mov dword [esp + 0x2c], eax
jmp 0x451ca9
lea ecx, [edi + edi + 2]
mov edi, dword [ebx]
mov eax, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x3c]
mov ecx, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], edx
call fcn.00401350
mov esi, dword [esp + 0x1c]
mov eax, dword [ebx]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x451cbf
mov edx, dword [eax - 4]
test edx, edx
jge 0x451d02
mov edi, dword [eax - 8]
test edi, edi
mov dword [esp + 0x3c], edi
jle 0x451ccc
mov ecx, edi
push ecx
mov ecx, ebx
call fcn.004012f0
test eax, eax
je 0x451d04
lea ecx, [edi + edi + 2]
mov edi, dword [ebx]
mov edx, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x40]
mov dword [eax - 8], ecx
call fcn.00401350
mov esi, dword [esp + 0x1c]
mov eax, dword [ebx]
mov edx, dword [ebx]
mov ecx, dword [edx - 8]
lea edx, [eax + ecx*2]
lea eax, [esp + 0x12]
push eax
lea ecx, [esp + 0x17]
push 0
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x48], edx
call fcn.00435ce0
mov edx, dword [esp + 0x94]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1200
push edx
call edi
mov ebx, eax
mov eax, dword [esi + 4]
push 0
push 0
push 0xb
push eax
mov dword [esp + 0x48], ebx
call edi
lea eax, [ebx - 1]
test eax, eax
mov dword [esp + 0x20], eax
jl 0x451e7f
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebx, 9
mov edx, dword [esi]
push eax
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call dword [edx + 0x2c]
mov ecx, dword [0x4d9540]
lea edx, [esp + 0x28]
lea eax, [esp + 0x20]
mov dword [esp + 0x28], ecx
push edx
push eax
lea ecx, [esp + 0x38]
call fcn.00435d90
lea ecx, [esp + 0x40]
push eax
push ecx
lea ecx, [esp + 0x58]
call fcn.00435bf0
mov esi, dword [eax]
lea ecx, [esp + 0x34]
call fcn.004014c0
lea ecx, [esp + 0x28]
call fcn.004014c0
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x18]
add esi, 0x10
cmp eax, ecx
je 0x451e05
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x451dd9
mov edx, dword [0x4d9544]
add eax, 0xfffffff4
cmp eax, edx
jne 0x451de0
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x451dee
mov edx, dword [ecx - 8]
push ecx
push edx
mov ecx, esi
call fcn.00401630
jmp 0x451e05
mov ecx, esi
call fcn.0040e950
mov eax, dword [esp + 0x18]
mov dword [esi], eax
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff4
push ecx
call ebp
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x64]
lea edx, [esp + 0x60]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x20]
push edx
push eax
push 0x120c
push ecx
mov dword [esp + 0x70], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x451e66
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x451e66
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x20], eax
jns 0x451d6a
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 4]
push 0
push 1
push 0xb
push ecx
call edi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov eax, dword [0x4d9540]
xor ebx, ebx
cmp ecx, edx
mov dword [esp + 0x14], eax
jae 0x4520a4
mov ebp, 0x89
jmp 0x451eb2
mov eax, dword [0x4d9540]
mov cx, word [ecx]
cmp cx, 0x3b
jne 0x452079
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
push 0x3d
push 0
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, esi
call fcn.00452250
mov ecx, dword [esp + 0x14]
push 0x3d
push 1
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, esi
call fcn.00452250
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x451fd6
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], 0
test eax, eax
jle 0x451fd6
mov ecx, dword [0x4d9540]
lea edx, [esp + 0x30]
lea eax, [esp + 0x24]
mov dword [esp + 0x30], ecx
push edx
push eax
lea ecx, [esp + 0x48]
call fcn.00435d90
lea ecx, [esp + 0x48]
push eax
push ecx
lea ecx, [esp + 0x58]
call fcn.00435bf0
mov edi, dword [eax]
lea ecx, [esp + 0x44]
call fcn.004014c0
lea ecx, [esp + 0x30]
call fcn.004014c0
mov edi, dword [edi + 0x10]
mov edx, dword [esp + 0x18]
push edi
push edx
call fcn.004c5509
add esp, 8
test eax, eax
je 0x451f7c
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x451f14
jmp 0x451fd6
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], ebp
push eax
call fcn.004c553e
add esp, 4
xor ecx, ecx
test eax, eax
mov dword [esp + 0x64], eax
jg 0x451fa9
mov ecx, 1
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x94]
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x60]
push ecx
push edx
push 0x120c
push eax
mov dword [esp + 0x90], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esp + 0x1c]
inc ebx
mov ecx, 0x4e3a5c
test ecx, ecx
je 0x451fea
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
jmp 0x451fec
xor edi, edi
push edi
lea ecx, [esp + 0x18]
call fcn.00401420
test eax, eax
je 0x452019
mov edx, dword [esp + 0x14]
inc edi
push edi
push 0x4e3a5c
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [esp + 0x28]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x452048
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x452048
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x45208d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45208d
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
jmp 0x45208d
lea eax, [esp + 0x30]
mov dword [esp + 0x30], ecx
push eax
push 1
lea ecx, [esp + 0x1c]
call fcn.00401850
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
add ecx, 2
cmp ecx, eax
mov dword [esp + 0x2c], ecx
jb 0x451ead
lea ecx, [esp + 0x14]
call fcn.004014c0
lea ecx, [esp + 0x50]
call fcn.00435930
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x7c
ret 8