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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4b4
mov eax, dword [0x43f040]
xor eax, esp
mov dword [esp + 0x4b0], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
push edi
mov dword [esp + 0x14], esi
cmp dword [esi + 0x14], 0
je 0x418074
mov eax, 0x40000
jmp 0x4182f5
cmp byte [esi + 0x2c], 0
je 0x418084
mov eax, 0x50000
jmp 0x4182f5
mov edi, dword [esi]
lea edx, [esp + 0x3b0]
mov ecx, dword [ebp + 8]
neg edi
sbb edi, edi
and edi, 0xc
sub edx, ecx
mov dword [esp + 0x1c], edi
mov al, byte [ecx]
mov byte [ecx + edx], al
inc ecx
test al, al
jne 0x41809d
mov al, byte [esp + 0x3b0]
test al, al
jne 0x4180bc
mov eax, 0x10000
jmp 0x4182f5
lea ecx, [esp + 0x3b0]
cmp al, 0x5c
jne 0x4180ca
mov byte [ecx], 0x2f
inc ecx
mov al, byte [ecx]
test al, al
jne 0x4180c3
lea ecx, [esp + 0x3b0]
call fcn.004178c9
push dword [ebp + 0x10]
movzx ebx, al
mov ecx, esi
push dword [esp + 0x14]
xor ebx, 1
shl ebx, 3
mov dword [esp + 0x20], ebx
call fcn.00417cf4
test eax, eax
jne 0x4182f5
and dword [esp + 0x37c], eax
xor ecx, ecx
mov byte [esp + 0x58], al
mov al, byte [esp + ecx + 0x3b0]
mov byte [esp + ecx + 0x168], al
inc ecx
test al, al
jne 0x41810d
lea ecx, [esp + 0x168]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41812a
xor eax, eax
mov dword [esp + 0x370], 1
mov word [esp + 0x4a], ax
sub ecx, edx
mov eax, 0xb17
mov dword [esp + 0x38], ecx
push 0x14
mov word [esp + 0x24], ax
xor edx, edx
pop eax
mov word [esp + 0x22], ax
mov eax, dword [esi + 0x68]
push 8
mov dword [esp + 0x2c], eax
pop eax
mov byte [esp + 0x26c], dl
mov dword [esp + 0x164], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x378], edx
mov dword [esp + 0x2c], edx
mov word [esp + 0x24], ax
cmp dword [esi], edx
je 0x418195
push 9
pop eax
mov word [esp + 0x24], ax
mov ecx, dword [esi + 0x70]
mov word [esp + 0x4c], ax
mov word [esp + 0x26], bx
test ebx, ebx
jne 0x4181b3
test ecx, ecx
js 0x4181b3
lea eax, [ecx + edi]
mov dword [esp + 0x30], eax
jmp 0x4181b7
mov dword [esp + 0x30], edx
xor eax, eax
mov ebx, dword [esi + 0x58]
mov edx, dword [esi + 0x5c]
lea edi, [esp + 0x3a4]
mov word [esp + 0x48], ax
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0x18]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x384]
mov dword [esp + 0x15c], eax
lea eax, [esp + 0x3a4]
mov dword [esp + 0x160], eax
mov al, byte [esi + 0x58]
mov byte [esp + 0x389], al
mov eax, edx
mov dword [esp + 0x34], ecx
mov ecx, ebx
shrd ecx, eax, 8
mov eax, edx
mov dword [esp + 0x384], 0xd5455
mov byte [esp + 0x38a], cl
mov ecx, ebx
shrd ecx, eax, 0x10
mov al, byte [esi + 0x50]
mov byte [esp + 0x38b], cl
shrd ebx, edx, 0x18
mov edx, dword [esi + 0x54]
mov byte [esp + 0x38d], al
mov eax, edx
mov byte [esp + 0x38c], bl
mov ebx, dword [esi + 0x50]
mov ecx, ebx
shrd ecx, eax, 8
mov eax, edx
mov byte [esp + 0x388], 7
mov byte [esp + 0x38e], cl
mov ecx, ebx
shrd ecx, eax, 0x10
mov al, byte [esi + 0x60]
shrd ebx, edx, 0x18
mov edx, dword [esi + 0x64]
mov byte [esp + 0x38f], cl
mov byte [esp + 0x390], bl
mov ebx, dword [esi + 0x60]
mov ecx, ebx
mov byte [esp + 0x391], al
lea esi, [esp + 0x384]
mov eax, edx
mov dword [esp + 0x3c], 0x11
shrd ecx, eax, 8
mov eax, edx
mov dword [esp + 0x40], 9
mov byte [esp + 0x392], cl
mov ecx, ebx
shrd ecx, eax, 0x10
shrd ebx, edx, 0x18
mov byte [esp + 0x393], cl
lea ecx, [esp + 0x20]
mov byte [esp + 0x394], bl
mov ebx, dword [esp + 0x14]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov byte [esp + 0x3aa], 5
call fcn.00416e0b
pop ecx
test eax, eax
je 0x41830c
mov ecx, ebx
call fcn.00417e97
mov eax, 0x400
mov ecx, dword [esp + 0x4bc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00418fad
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x38]
add eax, 0x1e
add eax, dword [esp + 0x3c]
add dword [ebx + 0x18], eax
cmp dword [ebx + 0x14], 0
je 0x41832c
mov ecx, ebx
call fcn.00417e97
mov eax, dword [ebx + 0x14]
jmp 0x4182f5
mov dword [ebx + 0x30], 0x12345678
mov dword [ebx + 0x34], 0x23456789
mov dword [ebx + 0x38], 0x34567890
mov esi, dword [ebx]
test esi, esi
je 0x41835a
mov dl, byte [esi]
test dl, dl
je 0x41835a
lea ecx, [ebx + 0x30]
call fcn.00417865
add esi, 1
jne 0x418347
cmp byte [0x440848], 0
jne 0x418370
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0041edf3
pop ecx
xor esi, esi
call fcn.0041edd2
sar eax, 7
mov byte [esp + esi + 0x398], al
inc esi
cmp esi, 0xc
jl 0x418372
mov eax, dword [esp + 0x28]
shr eax, 8
xor esi, esi
mov byte [esp + 0x3a3], al
mov dl, byte [esp + esi + 0x398]
lea ecx, [ebx + 0x30]
call fcn.004178a8
mov byte [esp + esi + 0x398], al
inc esi
cmp esi, 0xc
jl 0x418397
cmp dword [ebx], 0
je 0x4183cd
push 0xc
lea eax, [esp + 0x39c]
mov ecx, ebx
push eax
call fcn.00417bb8
add dword [ebx + 0x18], 0xc
mov esi, dword [esp + 0x18]
xor edi, edi
cmp dword [ebx], edi
setne al
mov byte [ebx + 0x2d], al
cmp esi, 8
jne 0x4183ee
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.00417edb
jmp 0x4183f9
test esi, esi
jne 0x4183fb
mov ecx, ebx
call fcn.00417feb
mov edi, eax
mov ecx, ebx
mov byte [ebx + 0x2d], 0
call fcn.00417e97
mov ecx, dword [ebx + 0x90]
add dword [ebx + 0x18], ecx
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x4182f5
test edi, edi
jne 0x4182f0
add ecx, dword [esp + 0x1c]
cmp dword [esp + 0x30], ecx
mov eax, dword [ebx + 0x78]
sete dl
mov dword [esp + 0x2c], eax
cmp byte [ebx + 0x1c], 0
mov eax, dword [ebx + 0x70]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
je 0x4184a7
cmp dword [ebx], edi
jne 0x4184a7
mov ax, word [esp + 0x24]
mov word [esp + 0x26], si
test al, 1
jne 0x418464
mov ecx, 0xfff7
and ax, cx
mov word [esp + 0x24], ax
mov word [esp + 0x4c], ax
mov ecx, ebx
mov eax, dword [esp + 0x54]
sub eax, dword [ebx + 0x10]
push eax
call fcn.00417c9d
test al, al
je 0x41849d
push ebx
lea ecx, [esp + 0x24]
call fcn.00416e0b
pop ecx
test eax, eax
jne 0x4182f0
push dword [ebx + 0x18]
mov ecx, ebx
call fcn.00417c9d
test al, al
jne 0x4184df
mov eax, 0x2000000
jmp 0x4182f5
cmp word [esp + 0x26], si
jne 0x418550
test esi, esi
jne 0x4184be
test dl, dl
je 0x418550
push ebx
lea ecx, [esp + 0x24]
call fcn.004170a6
pop ecx
test eax, eax
jne 0x4182f0
mov ax, word [esp + 0x4c]
add dword [ebx + 0x18], 0x10
mov word [esp + 0x24], ax
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x4182f5
push dword [esp + 0x40]
call fcn.00419387
pop ecx
push dword [esp + 0x40]
mov esi, eax
push dword [esp + 0x164]
push esi
call fcn.0041a5e0
add esp, 0xc
mov dword [esp + 0x160], esi
push 0x360
call fcn.00418fbb
pop ecx
mov edx, eax
lea esi, [esp + 0x20]
mov ecx, 0xd8
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x44]
test ecx, ecx
jne 0x418539
mov dword [ebx + 0x44], edx
jmp 0x418549
mov ecx, eax
mov eax, dword [ecx + 0x35c]
test eax, eax
jne 0x418537
mov dword [ecx + 0x35c], edx
xor eax, eax
jmp 0x4182f5
mov eax, 0x4000000
jmp 0x4182f5