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

Disassembly:
sub esp, 0x190
push ebx
mov ebx, dword [esp + 0x1a0]
push ebp
mov ebp, dword [ebx + 8]
push esi
xor eax, eax
mov esi, ecx
mov ecx, dword [0x652e00]
push edi
mov dword [esp + 0x98], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x9c], eax
call fcn.004a21f0
xor eax, eax
mov byte [esp + 0xa0], 0
mov ecx, 0x1f
lea edi, [esp + 0xa1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp byte [esi + 0x4c9], 5
mov edi, dword [ebx + 0xc]
jae 0x408e60
mov al, byte [esi + 0x4d4]
test al, al
je 0x408bad
movzx edx, al
imul edx, edi
mov eax, 0x51eb851f
mul edx
lea ecx, [esp + 0x120]
push ecx
shr edx, 5
push edx
call fcn.004a1ff0
mov ecx, dword [ebp*4 + 0xe5a580]
mov eax, dword [ecx + 0x110]
add esp, 8
test eax, eax
jne 0x408ad4
lea eax, [ecx + 0x114]
mov edx, eax
mov esi, dword [edx]
mov dword [esp + 0x5c], esi
mov esi, dword [edx + 4]
mov dword [esp + 0x60], esi
mov esi, dword [edx + 8]
mov dword [esp + 0x64], esi
mov esi, dword [edx + 0xc]
mov dword [esp + 0x68], esi
mov esi, eax
mov ebx, dword [esi]
mov dword [esp + 0x70], ebx
mov ebx, dword [esi + 4]
mov dword [esp + 0x74], ebx
mov ebx, dword [esi + 8]
mov dword [esp + 0x78], ebx
mov ebx, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov edx, dword [edx + 0x10]
mov esi, eax
mov ebx, dword [esi]
mov dword [esp + 0x84], ebx
mov ebx, dword [esi + 4]
mov dword [esp + 0x88], ebx
mov ebx, dword [esi + 8]
mov dword [esp + 0x8c], ebx
mov ebx, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
mov dword [esp + 0x94], esi
mov esi, eax
mov dword [esp + 0x90], ebx
mov ebx, dword [esi]
mov dword [esp + 0x5c], ebx
mov ebx, dword [esi + 4]
mov dword [esp + 0x60], ebx
mov ebx, dword [esi + 8]
mov dword [esp + 0x64], ebx
mov ebx, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
mov dword [esp + 0x6c], esi
mov esi, dword [eax + 4]
mov dword [esp + 0x68], ebx
mov ebx, dword [eax]
mov dword [esp + 0x18], esi
mov esi, dword [eax + 8]
mov dword [esp + 0x1c], esi
mov esi, dword [eax + 0xc]
push edx
mov dword [esp + 0x24], esi
mov eax, dword [eax + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [0xec0e0c]
add ecx, 4
mov dword [esp + 0x14], ecx
mov ecx, dword [eax]
mov eax, dword [esp + 0x80]
mov esi, ecx
lea edx, [esi + 0x918a8]
push edx
mov edx, dword [esp + 0x94]
push eax
mov dword [esp + 0x60], ecx
lea ecx, [esi + 0x91860]
push ecx
mov ecx, dword [esp + 0x70]
push edx
lea eax, [esi + 0x91818]
push eax
push ecx
lea edx, [esi + 0x917d0]
push edx
push ebx
lea eax, [esi + 0x91788]
push eax
lea ecx, [esi + 0x22868]
push ecx
lea edx, [esp + 0x14c]
push edx
push edi
call fcn.004a1f50
mov ecx, dword [esp + 0x44]
add esp, 4
push eax
lea eax, [esi + 0x22940]
push eax
push ecx
add esi, 0x227d8
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0xe0]
push str._s:_s_n_s:_s_
push edx
call esi
xor eax, eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
add esp, 0x48
mov word [esp + 0x31], ax
push ebp
mov ecx, 0xe5a570
mov byte [esp + 0x18], 0
mov byte [esp + 0x37], al
call fcn.004055b0
mov ecx, dword [0xec0e0c]
mov edx, dword [ecx]
push eax
add edx, 0x22748
push edx
lea eax, [esp + 0x1c]
push str._s:_s_n
push eax
call esi
lea eax, [esp + 0x24]
add esp, 0x10
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408ab4
lea edi, [esp + 0xa0]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408ac7
jmp 0x40910b
mov eax, dword [0xec0e0c]
lea ebx, [ecx + 4]
mov ecx, dword [eax]
mov esi, ecx
lea edx, [esi + 0x228b0]
push edx
lea eax, [esi + 0x22868]
mov dword [esp + 0x58], ecx
push eax
lea ecx, [esp + 0x128]
push ecx
push edi
call fcn.004a1f50
add esp, 4
push eax
lea edx, [esi + 0x22940]
push edx
push ebx
add esi, 0x227d8
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0xbc]
push 0x4bb6f8
push eax
call esi
mov edx, dword [ebp*4 + 0xe5a580]
xor ecx, ecx
mov dword [esp + 0x39], ecx
mov dword [esp + 0x3d], ecx
mov dword [esp + 0x41], ecx
mov dword [esp + 0x45], ecx
mov dword [esp + 0x49], ecx
mov dword [esp + 0x4d], ecx
mov dword [esp + 0x51], ecx
mov word [esp + 0x55], cx
mov byte [esp + 0x57], cl
mov ecx, dword [0xec0e0c]
mov byte [esp + 0x38], 0
mov eax, dword [edx + 0x110]
mov edx, dword [ecx]
push eax
add edx, 0x22790
push edx
lea eax, [esp + 0x40]
push str._s:_d_n
push eax
call esi
lea eax, [esp + 0x48]
add esp, 0x34
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408b86
lea edi, [esp + 0xa0]
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408ba0
jmp 0x40910b
mov ecx, dword [ebp*4 + 0xe5a580]
mov eax, dword [ecx + 0x110]
test eax, eax
jne 0x408d90
lea eax, [ecx + 0x114]
mov edx, eax
mov esi, dword [edx]
mov dword [esp + 0x14], esi
mov esi, dword [edx + 4]
mov dword [esp + 0x18], esi
mov esi, dword [edx + 8]
mov dword [esp + 0x1c], esi
mov esi, dword [edx + 0xc]
mov dword [esp + 0x20], esi
mov esi, eax
mov ebx, dword [esi]
mov dword [esp + 0x5c], ebx
mov ebx, dword [esi + 4]
mov dword [esp + 0x60], ebx
mov ebx, dword [esi + 8]
mov dword [esp + 0x64], ebx
mov ebx, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov edx, dword [edx + 0x10]
mov esi, eax
mov ebx, dword [esi]
mov dword [esp + 0x84], ebx
mov ebx, dword [esi + 4]
mov dword [esp + 0x88], ebx
mov ebx, dword [esi + 8]
mov dword [esp + 0x8c], ebx
mov ebx, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
mov dword [esp + 0x94], esi
mov esi, eax
mov dword [esp + 0x90], ebx
mov ebx, dword [esi]
mov dword [esp + 0x70], ebx
mov ebx, dword [esi + 4]
mov dword [esp + 0x74], ebx
mov ebx, dword [esi + 8]
mov dword [esp + 0x78], ebx
mov ebx, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
mov dword [esp + 0x80], esi
mov esi, dword [eax + 4]
mov dword [esp + 0x7c], ebx
mov ebx, dword [eax]
mov dword [esp + 0x18], esi
mov esi, dword [eax + 8]
mov dword [esp + 0x1c], esi
mov esi, dword [eax + 0xc]
push edx
mov dword [esp + 0x24], esi
mov eax, dword [eax + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [0xec0e0c]
add ecx, 4
mov dword [esp + 0x14], ecx
mov ecx, dword [eax]
mov eax, dword [esp + 0x6c]
mov esi, ecx
lea edx, [esi + 0x918a8]
push edx
mov edx, dword [esp + 0x94]
push eax
mov dword [esp + 0x60], ecx
lea ecx, [esi + 0x91860]
push ecx
mov ecx, dword [esp + 0x84]
push edx
lea eax, [esi + 0x91818]
push eax
push ecx
lea edx, [esi + 0x917d0]
push edx
push ebx
lea eax, [esi + 0x91788]
push eax
lea ecx, [esi + 0x22868]
push ecx
push edi
call fcn.004a1f50
add esp, 4
push eax
mov eax, dword [esp + 0x40]
lea edx, [esi + 0x22940]
push edx
push eax
add esi, 0x227d8
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0xdc]
push str._s:_s_n_s:_s_n_s:_s__d___s__d__n_s__d___s__d___s__d__n
push ecx
call esi
xor edx, edx
mov dword [esp + 0x59], edx
mov dword [esp + 0x5d], edx
mov dword [esp + 0x61], edx
mov dword [esp + 0x65], edx
mov dword [esp + 0x69], edx
mov dword [esp + 0x6d], edx
mov dword [esp + 0x71], edx
add esp, 0x44
mov word [esp + 0x31], dx
push ebp
mov ecx, 0xe5a570
mov byte [esp + 0x18], 0
mov byte [esp + 0x37], dl
call fcn.004055b0
push eax
mov eax, dword [0xec0e0c]
mov ecx, dword [eax]
add ecx, 0x22748
push ecx
lea edx, [esp + 0x1c]
push str._s:_s_n
push edx
call esi
lea eax, [esp + 0x24]
add esp, 0x10
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408d70
lea edi, [esp + 0xa0]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408d83
jmp 0x40910b
mov eax, dword [0xec0e0c]
lea ebx, [ecx + 4]
mov ecx, dword [eax]
mov esi, ecx
lea edx, [esi + 0x228b0]
push edx
lea eax, [esi + 0x22868]
push eax
push edi
mov dword [esp + 0x60], ecx
call fcn.004a1f50
add esp, 4
push eax
lea ecx, [esi + 0x22940]
push ecx
push ebx
add esi, 0x227d8
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0xb8]
push str._s:_s_n_s:_s_n_s:_s_n
push edx
call esi
mov ecx, dword [ebp*4 + 0xe5a580]
xor eax, eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov word [esp + 0x51], ax
mov byte [esp + 0x53], al
mov eax, dword [0xec0e0c]
mov byte [esp + 0x34], 0
mov edx, dword [ecx + 0x110]
mov ecx, dword [eax]
push edx
add ecx, 0x22790
push ecx
lea edx, [esp + 0x3c]
push str._s:_d_n
push edx
call esi
lea eax, [esp + 0x44]
add esp, 0x30
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408e40
lea edi, [esp + 0xa0]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408e53
jmp 0x40910b
mov ecx, dword [ebp*4 + 0xe5a580]
mov eax, dword [ecx + 0x110]
test eax, eax
jne 0x409040
lea eax, [ecx + 0x114]
mov edx, eax
mov esi, dword [edx]
mov dword [esp + 0x14], esi
mov esi, dword [edx + 4]
mov dword [esp + 0x18], esi
mov esi, dword [edx + 8]
mov dword [esp + 0x1c], esi
mov esi, dword [edx + 0xc]
mov dword [esp + 0x20], esi
mov esi, eax
mov ebx, dword [esi]
mov dword [esp + 0x5c], ebx
mov ebx, dword [esi + 4]
mov dword [esp + 0x60], ebx
mov ebx, dword [esi + 8]
mov dword [esp + 0x64], ebx
mov ebx, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov edx, dword [edx + 0x10]
mov esi, eax
mov ebx, dword [esi]
mov dword [esp + 0x84], ebx
mov ebx, dword [esi + 4]
mov dword [esp + 0x88], ebx
mov ebx, dword [esi + 8]
mov dword [esp + 0x8c], ebx
mov ebx, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
mov dword [esp + 0x94], esi
mov esi, eax
mov dword [esp + 0x90], ebx
mov ebx, dword [esi]
mov dword [esp + 0x70], ebx
mov ebx, dword [esi + 4]
mov dword [esp + 0x74], ebx
mov ebx, dword [esi + 8]
mov dword [esp + 0x78], ebx
mov ebx, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
mov dword [esp + 0x80], esi
mov esi, dword [eax + 4]
mov dword [esp + 0x7c], ebx
mov ebx, dword [eax]
mov dword [esp + 0x18], esi
mov esi, dword [eax + 8]
mov dword [esp + 0x1c], esi
mov esi, dword [eax + 0xc]
push edx
mov dword [esp + 0x24], esi
mov eax, dword [eax + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [0xec0e0c]
add ecx, 4
mov dword [esp + 0x14], ecx
mov ecx, dword [eax]
mov eax, dword [esp + 0x6c]
mov esi, ecx
lea edx, [esi + 0x918a8]
push edx
mov edx, dword [esp + 0x94]
push eax
mov dword [esp + 0x60], ecx
lea ecx, [esi + 0x91860]
push ecx
mov ecx, dword [esp + 0x84]
push edx
lea eax, [esi + 0x91818]
push eax
push ecx
lea edx, [esi + 0x917d0]
push edx
push ebx
lea eax, [esi + 0x91788]
push eax
lea ecx, [esi + 0x22868]
push ecx
push edi
call fcn.004a1f50
add esp, 4
push eax
mov eax, dword [esp + 0x40]
lea edx, [esi + 0x22988]
push edx
push eax
add esi, 0x227d8
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0xdc]
push str._s:_s_n_s:_s_n_s:_s__d___s__d__n_s__d___s__d___s__d__n
push ecx
call esi
xor edx, edx
mov dword [esp + 0x59], edx
mov dword [esp + 0x5d], edx
mov dword [esp + 0x61], edx
mov dword [esp + 0x65], edx
mov dword [esp + 0x69], edx
mov dword [esp + 0x6d], edx
mov dword [esp + 0x71], edx
add esp, 0x44
mov word [esp + 0x31], dx
push ebp
mov ecx, 0xe5a570
mov byte [esp + 0x18], 0
mov byte [esp + 0x37], dl
call fcn.004055b0
push eax
mov eax, dword [0xec0e0c]
mov ecx, dword [eax]
add ecx, 0x22748
push ecx
lea edx, [esp + 0x1c]
push str._s:_s_n
push edx
call esi
lea eax, [esp + 0x24]
add esp, 0x10
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409020
lea edi, [esp + 0xa0]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409033
jmp 0x40910b
mov eax, dword [0xec0e0c]
lea ebx, [ecx + 4]
mov ecx, dword [eax]
mov esi, ecx
lea edx, [esi + 0x228b0]
push edx
lea eax, [esi + 0x22868]
push eax
push edi
mov dword [esp + 0x60], ecx
call fcn.004a1f50
add esp, 4
push eax
lea ecx, [esi + 0x22988]
push ecx
push ebx
add esi, 0x227d8
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0xb8]
push str._s:_s_n_s:_s_n_s:_s_n
push edx
call esi
mov ecx, dword [ebp*4 + 0xe5a580]
xor eax, eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov word [esp + 0x51], ax
mov byte [esp + 0x53], al
mov eax, dword [0xec0e0c]
mov byte [esp + 0x34], 0
mov edx, dword [ecx + 0x110]
mov ecx, dword [eax]
push edx
add ecx, 0x22790
push ecx
lea edx, [esp + 0x3c]
push str._s:_d_n
push edx
call esi
lea eax, [esp + 0x44]
add esp, 0x30
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4090f0
lea edi, [esp + 0xa0]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409103
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xa0]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409123
sub eax, edx
test eax, eax
jle 0x40924c
lea esi, [esp + 0xa0]
dec esi
mov ebp, 1
mov dword [esp + 0x10], esi
jmp 0x409150
xor eax, eax
mov byte [esp + 0x14], 0
mov ecx, 0xf
lea edi, [esp + 0x15]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp byte [esi + ebp], 0xa
jne 0x409224
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x9c]
push eax
lea edx, [esp + ecx + 0xa4]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004aa2b0
mov ebx, dword [esp + 0xa4]
add esp, 0xc
mov eax, ebx
sub eax, 0
push 0
push 0
je 0x4091d0
dec eax
je 0x4091bf
mov eax, dword [esp + 0x1b0]
lea ecx, [esp + 0x1c]
push 0x121212
lea edx, [ebx + ebx*2]
push ecx
lea ecx, [eax + edx*4 + 2]
jmp 0x4091e1
mov ecx, dword [esp + 0x1b0]
push 0xff
add ecx, 0xe
jmp 0x4091dc
mov ecx, dword [esp + 0x1b0]
push 0xff0000
lea eax, [esp + 0x20]
push eax
mov edx, dword [esp + 0x1b4]
push ecx
mov ecx, dword [0x652e00]
push edx
call fcn.004a22b0
mov edi, 0x4bb448
lea esi, [esp + 0x14]
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x409211
inc ebx
mov dword [esp + 0x98], ebx
mov esi, dword [esp + 0x10]
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x9c], ebp
mov ecx, dword [esp + 0x58]
inc ecx
lea eax, [esp + 0xa0]
mov dword [esp + 0x58], ecx
inc ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409238
sub eax, edx
lea ecx, [ebp - 1]
cmp ecx, eax
jl 0x409150
mov ecx, dword [0x652e00]
call fcn.004a2250
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret 0xc