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

Disassembly:
push 0xffffffffffffffff
push 0x424549
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
xor ebx, ebx
mov ebp, 0x42545c
push esi
push edi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], 0x425458
mov eax, dword [0x42a2c0]
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x9c], 2
call fcn.004161a0
mov eax, dword [0x42a2c0]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0xa4]
mov byte [esp + 0x9c], 4
cmp esi, ebx
mov dword [esp + 0x10], ebx
je 0x4160dc
mov edi, dword [esp + 0xa8]
cmp edi, ebx
je 0x4160dc
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x9c], 7
je 0x415c22
push str.version1.0_encodingutf_16
mov ecx, eax
call fcn.004057e0
jmp 0x415c24
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x9c], 4
mov dword [esp + 0x5c], eax
jne 0x415c3e
push 0x8007000e
call fcn.00422bf0
push 0xc
mov byte [esp + 0xa0], 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x9c], 9
je 0x415c6a
push esi
mov ecx, eax
call fcn.004057a0
jmp 0x415c6c
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x9c], 8
mov dword [esp + 0x60], eax
jne 0x415c86
push 0x8007000e
call fcn.00422bf0
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x78]
call fcn.00405690
lea edx, [esp + 0x60]
mov esi, 0x425468
push ebx
push edx
lea ecx, [esp + 0x70]
mov byte [esp + 0xa4], 0xd
mov dword [esp + 0x70], esi
call fcn.004060b0
lea ecx, [esp + 0x60]
call fcn.00405750
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9c], 0xf
call fcn.00405750
push ebx
lea ecx, [esp + 0x70]
call fcn.004079e0
test al, al
je 0x415d50
lea ecx, [esp + 0x74]
mov dword [esp + 0x68], esi
call fcn.00405750
lea ecx, [esp + 0x70]
call fcn.00405750
lea ecx, [esp + 0x6c]
call fcn.0040e830
mov eax, dword [esp + 0x14]
mov edx, dword [0x42a2c4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x415d32
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415d32
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.00420d62
add esp, 4
lea ecx, [esp + 0x40]
call fcn.00402860
mov dword [esp + 0x20], 0x425458
mov byte [esp + 0x9c], 0x12
jmp 0x416120
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x9c], 0x13
je 0x415d74
push edi
mov ecx, eax
call fcn.004057a0
jmp 0x415d76
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x9c], 0xf
mov dword [esp + 0x18], eax
jne 0x415d90
push 0x8007000e
call fcn.00422bf0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x80]
push eax
push ecx
lea ecx, [esp + 0x70]
mov byte [esp + 0xa4], 0x14
call fcn.004066a0
mov edx, dword [eax + 4]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], edx
mov eax, dword [eax + 8]
push eax
call fcn.00407a30
lea ecx, [esp + 0x88]
mov dword [esp + 0x80], ebp
call fcn.0040e830
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0xf
call fcn.00405750
mov eax, dword [esp + 0x38]
xor edi, edi
cmp eax, ebx
mov ebp, eax
jle 0x41608e
push 0x42f83c
lea ecx, [esp + 0x44]
call fcn.00402fd0
lea ecx, [esp + 0x80]
push edi
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.00405c60
mov esi, eax
lea ecx, [esp + 0x24]
mov edx, dword [esi + 4]
push edx
call fcn.00407a30
mov eax, dword [esi + 8]
lea ecx, [esp + 0x28]
push eax
call fcn.00407a30
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x80], 0x425458
mov dword [esp + 0x2c], ecx
push ebx
lea ecx, [esp + 0x8c]
mov byte [esp + 0xa0], 0x16
call fcn.004168d0
push ebx
lea ecx, [esp + 0x88]
call fcn.004168d0
lea ecx, [esp + 0x88]
call fcn.0040e830
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 0xf
call fcn.0040e830
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, ebx
mov byte [esp + 0x9c], 0x17
je 0x415ebe
push str.Used
mov ecx, eax
call fcn.004057a0
jmp 0x415ec0
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x9c], 0xf
mov dword [esp + 0x18], eax
jne 0x415eda
push 0x8007000e
call fcn.00422bf0
lea edx, [esp + 0x30]
push ebx
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa8], 0x18
mov dword [esp + 0x3c], ebx
call fcn.00414430
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0xf
call fcn.00405750
cmp dword [esp + 0x30], ebx
je 0x416085
push str.Name
lea ecx, [esp + 0x5c]
call fcn.004056b0
lea ecx, [esp + 0x14]
push ebx
lea edx, [esp + 0x5c]
push ecx
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa8], 0x19
call fcn.00405910
lea ecx, [esp + 0x58]
mov esi, eax
mov byte [esp + 0x9c], 0xf
call fcn.00405750
cmp esi, ebx
je 0x416085
lea eax, [esp + 0x14]
lea ecx, [esp + 0x40]
push eax
call fcn.00405090
push 0x42dad8
lea ecx, [esp + 0x58]
call fcn.004056b0
lea ecx, [esp + 0x10]
push ebx
lea edx, [esp + 0x58]
push ecx
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa8], 0x1a
call fcn.00416170
lea ecx, [esp + 0x54]
mov esi, eax
mov byte [esp + 0x9c], 0xf
call fcn.00405750
cmp esi, ebx
je 0x416085
mov eax, dword [esp + 0x10]
push 0x42dad4
lea ecx, [esp + 0x68]
mov dword [esp + 0x4c], eax
call fcn.004056b0
lea ecx, [esp + 0x10]
push ebx
lea edx, [esp + 0x68]
push ecx
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa8], 0x1b
call fcn.00416170
lea ecx, [esp + 0x64]
mov esi, eax
mov byte [esp + 0x9c], 0xf
call fcn.00405750
cmp esi, ebx
je 0x416085
mov eax, dword [esp + 0x10]
push str.BGR
lea ecx, [esp + 0x20]
mov dword [esp + 0x50], eax
call fcn.004056b0
lea ecx, [esp + 0x10]
push ebx
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa8], 0x1c
call fcn.00416170
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x9c], 0xf
call fcn.00405750
cmp esi, ebx
je 0x416085
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x4c]
xor ecx, ecx
and edx, 0xff
mov ch, al
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x48]
or ecx, edx
shl ecx, 8
and eax, 0xff
lea edx, [esp + 0x40]
or ecx, eax
push edx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x80]
add ecx, 0x40
mov eax, dword [ecx + 8]
push eax
call fcn.00417100
inc edi
cmp edi, ebp
jl 0x415df6
lea ecx, [esp + 0x68]
mov byte [esp + 0x9c], 4
call fcn.00406000
lea ecx, [esp + 0x14]
call fcn.00402860
lea ecx, [esp + 0x40]
call fcn.00402860
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], bl
call fcn.00401370
lea ecx, [esp + 0x34]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00401430
mov eax, 1
jmp 0x416155
mov edx, dword [0x42a2c4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x416107
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x416107
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.00420d62
add esp, 4
lea ecx, [esp + 0x40]
call fcn.00402860
mov dword [esp + 0x20], 0x425458
mov byte [esp + 0x9c], 6
push ebx
lea ecx, [esp + 0x2c]
call fcn.004168d0
push ebx
lea ecx, [esp + 0x28]
call fcn.004168d0
lea ecx, [esp + 0x28]
call fcn.0040e830
lea ecx, [esp + 0x24]
call fcn.0040e830
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], ebp
call fcn.0040e830
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 8