Function at 0x403050
Capabilities:
Enumerate pe sections
Link many functions at runtime
Parse pe header

Disassembly:
mov ecx, dword [0x4050b0]
mov eax, 0xb60b60b7
imul ecx
add edx, ecx
mov ecx, dword [0x40506c]
sub esp, 0x534
add ecx, 0xffffec02
sar edx, 5
mov eax, edx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
shr eax, 0x1f
add edx, eax
push 0x40a56c
mov dword [0x4050b0], edx
mov dword [0x4050d0], ecx
call esi
mov ecx, dword [0x405064]
mov dword [0x40aaf8], eax
mov eax, 0x82082083
push 0x40a4e0
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [0x405064], edx
call esi
mov ebp, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [0x40aafc], eax
call ebp
mov ecx, dword [0x40aaf8]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40a6bc
push ecx
call esi
mov ecx, dword [0x405108]
mov dword [0x40aab4], eax
mov eax, 0x5254e78f
push 0x40a648
imul ecx
mov ecx, dword [0x40aaf8]
sar edx, 6
mov eax, edx
push ecx
shr eax, 0x1f
add edx, eax
mov dword [0x405108], edx
call esi
mov edx, dword [0x4051b4]
mov dword [0x40aad4], eax
mov eax, dword [0x40aafc]
add edx, 0x76f7
push 0x40a5d8
push eax
mov dword [0x4051e0], edx
call esi
mov dword [0x40aad8], eax
call ebp
mov ecx, dword [0x40aaf8]
push 0x40a58c
push ecx
call esi
mov edx, dword [0x405760]
mov edi, dword [sym.imp.USER32.dll_GetClassLongA]
push 0xb4
push edx
mov dword [0x40aadc], eax
call edi
mov eax, dword [0x40aaf8]
push 0x40a524
push eax
call esi
mov ecx, dword [0x405140]
mov dword [0x40aae0], eax
mov eax, ecx
shl eax, 4
mov edx, dword [0x40aaf8]
add eax, ecx
push 0x40a4a0
push edx
lea ecx, [eax + eax*8]
mov dword [0x405014], ecx
call esi
mov dword [0x40aae4], eax
mov eax, dword [0x40aaf8]
push 0x40a430
push eax
mov dword [0x4051e0], 0x20c2
call esi
mov dword [0x40aae8], eax
mov eax, dword [0x405060]
push 0x40a3c8
lea ecx, [eax + eax*8]
lea ecx, [ecx + ecx*8]
lea ecx, [ecx + ecx*8]
lea edx, [eax + ecx*4]
lea ecx, [eax + edx*4]
lea edx, [eax + ecx*2]
mov eax, dword [0x40aaf8]
push eax
mov dword [0x405138], edx
call esi
mov ecx, dword [0x405004]
mov dword [0x40aaec], eax
mov eax, 0x43b3d5b
push 0x40a3f8
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [0x405004], edx
mov edx, dword [0x40aaf8]
push edx
call esi
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [0x40aab8], eax
mov eax, dword [0x405784]
push 0x91
push eax
call ebx
mov ecx, dword [0x40aaf8]
push 0x40a3a4
push ecx
call esi
mov dword [0x40aabc], eax
call dword [sym.imp.GDI32.dll_GdiFlush]
mov edx, dword [0x40aaf8]
push 0x40a350
push edx
call esi
mov dword [0x40aac0], eax
mov eax, dword [0x4057b0]
push 0x3e
push eax
call ebx
mov ecx, dword [0x40aaf8]
push 0x40a2c4
push ecx
call esi
mov edx, dword [0x405124]
mov ecx, dword [0x40aab4]
imul edx, edx, 0x657b
test ecx, ecx
mov dword [0x40aaf0], eax
mov dword [0x4051cc], edx
je 0x403977
mov ecx, dword [0x40aad4]
test ecx, ecx
je 0x403977
mov ecx, dword [0x40aad8]
test ecx, ecx
je 0x403977
mov ecx, dword [0x40aadc]
test ecx, ecx
je 0x403977
mov ecx, dword [0x40aae0]
test ecx, ecx
je 0x403977
mov ecx, dword [0x40aae4]
test ecx, ecx
je 0x403977
mov ecx, dword [0x40aae8]
test ecx, ecx
je 0x403977
mov ecx, dword [0x40aaec]
test ecx, ecx
je 0x403977
mov ecx, dword [0x40aab8]
test ecx, ecx
je 0x403977
mov edx, dword [0x40aabc]
test edx, edx
je 0x403977
mov edx, dword [0x40aac0]
test edx, edx
je 0x403977
test eax, eax
je 0x403977
call ecx
mov dword [0x40aaf4], eax
lea eax, [esp + 0x70]
push 0x104
push eax
push 0
mov dword [0x40521c], 0x3683
call dword [0x40aaf0]
mov ecx, dword [0x4051fc]
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov ecx, edx
push 0x7e
shr ecx, 0x1f
add edx, ecx
mov dword [0x4051fc], edx
mov edx, dword [0x40574c]
push edx
call edi
mov ecx, dword [0x4051a8]
mov eax, 0x49661b2b
imul ecx
mov ecx, dword [0x405754]
push 0x39
sar edx, 0xb
mov eax, edx
push ecx
shr eax, 0x1f
add edx, eax
mov dword [0x4051a8], edx
call edi
mov ecx, dword [0x405254]
mov eax, 0x4a10a75f
imul ecx
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [0x4051a0], edx
call dword [sym.imp.GDI32.dll_GdiFlush]
mov dword [0x4051c8], 0x4368
call ebp
mov ecx, dword [0x40509c]
mov eax, 0xf2b9d649
imul ecx
add edx, ecx
mov eax, dword [0x405050]
sar edx, 7
mov ecx, edx
push 0x6e
shr ecx, 0x1f
add edx, ecx
mov ecx, 0x3471
mov dword [0x40509c], edx
cdq
idiv ecx
mov ecx, dword [0x405270]
mov eax, 0x60606061
mov dword [0x4050e8], edx
imul ecx
mov ecx, dword [0x405724]
sar edx, 6
mov eax, edx
push ecx
shr eax, 0x1f
add edx, eax
mov dword [0x405270], edx
call ebx
mov ecx, dword [0x4051f4]
mov eax, 0xb40b40b5
imul ecx
add edx, ecx
mov ecx, dword [0x40516c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [ecx + ecx*2]
mov dword [0x4051f4], edx
shl eax, 3
sub eax, ecx
push 3
lea edx, [eax + eax*8]
mov eax, dword [0x405de8]
shl edx, 4
add edx, ecx
mov ecx, dword [0x405728]
shl edx, 2
push ecx
mov dword [0x4051d4], edx
lea ebx, [eax + 1]
call edi
mov edx, dword [0x40aaf4]
push ebx
push 0
push edx
call dword [0x40aabc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x40360c
dec ebx
mov esi, 0x405dec
mov ecx, ebx
mov edi, eax
mov edx, ecx
mov dword [0x4051f4], 0x67cc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x405164]
mov dword [0x4050b4], 0x3a43
add ecx, 0x117a
mov dword [0x405170], ecx
movsx edi, byte [eax]
call dword [sym.imp.GDI32.dll_GdiFlush]
mov eax, dword [0x4051f4]
mov ecx, 0x4371
cdq
idiv ecx
mov ecx, dword [str._P]
mov eax, 0x3531dec1
mov esi, ebx
push edi
sub esi, edi
mov edi, dword [esp + 0x14]
dec esi
mov dword [0x405294], edx
imul ecx
sar edx, 4
mov eax, edx
lea ecx, [edi + esi + 1]
shr eax, 0x1f
add edx, eax
push ecx
mov dword [str._P], edx
lea edx, [esp + 0x17c]
push edx
call fcn.00402ba0
lea eax, [edi + 1]
push esi
mov dword [esp + 0x38], eax
push eax
lea eax, [esp + 0x188]
mov dword [0x405220], 0x188c
push eax
call fcn.00402cb0
add esp, 0x18
mov dword [0x405144], 0x59c9
call ebp
mov dword [0x40508c], 0x2721
mov dword [0x405058], 0x5500
call dword [sym.imp.GDI32.dll_GdiFlush]
lea eax, [ebx + ebx*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x51eb851f
lea ebx, [ebx + ecx*4]
mov ecx, dword [0x40aaf4]
imul ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
push 0
push ecx
call dword [0x40aabc]
mov edi, eax
test edi, edi
mov dword [esp + 0x24], edi
je 0x403606
mov edx, dword [esp + 0x28]
push 0
push esi
push edi
push edx
call fcn.00402ee0
mov ecx, dword [0x405074]
mov esi, eax
mov eax, 0xb40b40b5
add esp, 0x10
imul ecx
add edx, ecx
mov ecx, dword [0x405720]
sar edx, 6
mov eax, edx
push 0xdd
shr eax, 0x1f
add edx, eax
push ecx
mov dword [0x405074], edx
inc esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edx, dword [0x40aaf4]
push esi
push 0
push edx
call dword [0x40aabc]
mov ebx, eax
test ebx, ebx
jne 0x403624
mov edi, dword [sym.imp.USER32.dll_GetClassLongA]
call dword [sym.imp.GDI32.dll_GdiFlush]
mov eax, dword [0x405718]
push 0x8a
push eax
call edi
jmp 0x403956
mov ecx, dword [0x4057d4]
push 0xa3
push ecx
call dword [sym.imp.USER32.dll_GetClassLongA]
lea ecx, [esi - 1]
mov esi, edi
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.GDI32.dll_GdiFlush]
call esi
mov eax, dword [esp + 0x24]
mov ecx, dword [0x40aaf4]
push eax
push 0
push ecx
call dword [0x40aac0]
mov eax, dword [0x405290]
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x10]
sar eax, 2
mov dword [0x405290], eax
mov eax, dword [0x40aaf4]
push edx
push 0
push eax
call dword [0x40aac0]
mov ecx, dword [0x405780]
push 0x82
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
call ebp
mov dword [0x405160], 0x2cf0
call esi
mov eax, dword [0x4051fc]
mov edx, eax
shl edx, 5
add edx, eax
lea ecx, [eax + edx*8]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*2]
mov dword [0x4050c8], edx
call ebp
call ebp
mov eax, dword [0x405724]
push 0x38
push eax
call dword [sym.imp.USER32.dll_GetClassLongA]
mov eax, dword [0x405110]
mov edx, dword [0x4051d4]
add edx, 0x36dc
mov dword [0x40515c], 0x214a
lea ecx, [eax + eax*2]
mov dword [0x405164], edx
shl ecx, 6
add ecx, eax
shl ecx, 6
sub ecx, eax
mov dword [0x4050ec], ecx
call ebp
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov ecx, dword [0x405058]
mov eax, 0x80808081
imul ecx
add edx, ecx
mov dword [esp + 0x2c], 0x44
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [0x405058], edx
call esi
mov dword [esp + 0x278], 0x10007
call ebp
mov dword [0x40aaa8], ebx
mov dword [0x40506c], 0x38f
cmp word [ebx], 0x5a4d
jne 0x403956
mov ecx, dword [ebx + 0x3c]
mov edx, dword [0x4057d8]
mov edi, dword [sym.imp.USER32.dll_GetClassLongA]
add ecx, ebx
push 0x42
push edx
mov dword [0x40aaac], ecx
call edi
mov eax, dword [0x40aaac]
cmp dword [eax], 0x4550
jne 0x403956
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push edx
push 0
push 0
push 4
push 0
push 0
push 0
call dword [0x40aab4]
push eax
lea eax, [esp + 0x94]
push eax
call dword [0x40aad4]
mov eax, dword [0x40511c]
mov ecx, 0x2d8c
cdq
idiv ecx
mov ecx, dword [esp + 0x14]
mov dword [0x405240], edx
mov edx, dword [0x40aaac]
mov eax, dword [edx + 0x34]
push eax
push ecx
call dword [0x40aad8]
mov edx, dword [0x405798]
push 0x3c
push edx
call edi
mov eax, dword [0x40aaac]
push 0x40
push 0x3000
mov ecx, dword [eax + 0x50]
mov edx, dword [eax + 0x34]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
call dword [0x40aadc]
mov ecx, dword [0x4050e8]
mov eax, 0x6efa60c1
imul ecx
mov eax, dword [0x40aaac]
push 0
sar edx, 0xd
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [esp + 0x18]
mov dword [0x4050b4], edx
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x34]
push edx
push ebx
push eax
push ecx
call dword [0x40aae0]
call ebp
mov edx, dword [0x40aaac]
xor edi, edi
cmp word [edx + 6], di
jbe 0x4038f1
xor esi, esi
mov eax, dword [0x40aaa8]
push 0x66
mov ecx, dword [eax + 0x3c]
mov eax, dword [0x4057e0]
add ecx, esi
push eax
lea edx, [ecx + ebx + 0xf8]
mov dword [0x40aab0], edx
call dword [sym.imp.USER32.dll_GetClassLongA]
mov eax, dword [0x40aab0]
push 0
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
push ecx
mov ecx, dword [0x40aaac]
add edx, ebx
push edx
mov edx, dword [ecx + 0x34]
add eax, edx
mov edx, dword [esp + 0x20]
push eax
push edx
call dword [0x40aae0]
mov ecx, dword [0x405094]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
xor ecx, ecx
shr eax, 0x1f
add edx, eax
inc edi
mov dword [0x405094], edx
mov edx, dword [0x40aaac]
add esi, 0x28
mov cx, word [edx + 6]
cmp edi, ecx
jl 0x403866
mov esi, dword [sym.imp.GDI32.dll_GdiFlush]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x278]
push eax
push ecx
call dword [0x40aae4]
mov edx, dword [0x4057c4]
push 0xd9
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov eax, dword [0x40aaac]
mov ecx, dword [eax + 0x34]
mov ebx, dword [eax + 0x28]
add ecx, ebx
mov dword [esp + 0x328], ecx
call ebp
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x278]
push edx
push eax
call dword [0x40aae8]
mov ecx, dword [esp + 0x18]
mov dword [0x40519c], 0x3195
push ecx
call dword [0x40aaec]
call esi
call ebp
mov edx, dword [0x405100]
pop edi
add edx, 0xffffe97b
pop esi
pop ebp
mov dword [0x40523c], edx
xor eax, eax
pop ebx
add esp, 0x534
ret
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x534
ret