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

Disassembly:
sub esp, 0x4dc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4f4]
push edi
push 1
push str..LST
push esi
call fcn.0042b280
mov ebp, dword [esp + 0x4fc]
add esp, 0xc
test eax, eax
je 0x41c404
mov esi, dword [esp + 0x4f4]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push eax
push esi
push ebp
mov word [esp + 0x3c], ax
call fcn.0050a2b3
add esp, 0xc
test ebp, ebp
je 0x41c5df
push ebp
push 4
lea ecx, [esp + 0x30]
push 1
push ecx
call fcn.0050a0f8
mov al, byte [esp + 0x38]
add esp, 0x10
cmp al, 0x42
jne 0x41c3c7
cmp byte [esp + 0x29], 0x4d
jne 0x41c3c7
mov edx, dword [str..BMP]
mov al, byte [0x5c4910]
jmp 0x41c3ee
lea ecx, [esp + 0x28]
push 1
push ecx
push 0x5c4908
call fcn.0042b280
add esp, 0xc
test eax, eax
je 0x41cdec
mov edx, dword [str..LBT]
mov al, byte [0x5c4904]
push 0
push esi
push ebp
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], al
call fcn.0050a2b3
add esp, 0xc
jmp 0x41c416
lea edx, [esp + 0x28]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41c40c
push 1
lea edx, [esp + 0x2c]
push str..BMP
push edx
call fcn.0042b280
mov ebx, dword [esp + 0x508]
add esp, 0xc
test eax, eax
je 0x41c584
push ebp
push 1
lea eax, [esp + 0x40]
push 2
push eax
call fcn.0050a0f8
push ebp
push 1
lea ecx, [esp + 0x54]
push 4
push ecx
call fcn.0050a0f8
push ebp
push 1
lea edx, [esp + 0x68]
push 2
push edx
call fcn.0050a0f8
push ebp
push 1
lea eax, [esp + 0x7a]
push 2
push eax
call fcn.0050a0f8
add esp, 0x40
lea ecx, [esp + 0x44]
push ebp
push 1
push 4
push ecx
call fcn.0050a0f8
push ebp
push 1
lea edx, [esp + 0x60]
push 4
push edx
call fcn.0050a0f8
push ebp
push 1
lea eax, [esp + 0x74]
push 4
push eax
call fcn.0050a0f8
push ebp
push 1
lea ecx, [esp + 0x88]
push 4
push ecx
call fcn.0050a0f8
add esp, 0x40
lea edx, [esp + 0x54]
push ebp
push 1
push 2
push edx
call fcn.0050a0f8
push ebp
push 1
lea eax, [esp + 0x6e]
push 2
push eax
call fcn.0050a0f8
push ebp
push 1
lea ecx, [esp + 0x80]
push 4
push ecx
call fcn.0050a0f8
push ebp
push 1
lea edx, [esp + 0x94]
push 4
push edx
call fcn.0050a0f8
add esp, 0x40
lea eax, [esp + 0x60]
push ebp
push 1
push 4
push eax
call fcn.0050a0f8
push ebp
push 1
lea ecx, [esp + 0x7c]
push 4
push ecx
call fcn.0050a0f8
push ebp
push 1
lea edx, [esp + 0x90]
push 4
push edx
call fcn.0050a0f8
push ebp
push 1
lea eax, [esp + 0xa4]
push 4
push eax
call fcn.0050a0f8
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x90]
mov dword [ebx + 0x20], ecx
mov ecx, dword [esp + 0x96]
add esp, 0x40
cmp cx, 8
mov dword [ebx + 0x24], edx
ja 0x41c57d
mov esi, dword [esp + 0x68]
test esi, esi
jne 0x41c6e5
mov esi, 1
shl esi, cl
jmp 0x41c6e5
xor esi, esi
jmp 0x41c6e5
push 1
lea eax, [esp + 0x2c]
push str..LBT
push eax
call fcn.0042b280
add esp, 0xc
test eax, eax
je 0x41c620
push ebp
push 1
lea ecx, [esp + 0x40]
push 0x10
push ecx
call fcn.0050a0f8
push 1
lea edx, [esp + 0x4c]
push 0x5c48fc
push edx
call fcn.0042b280
add esp, 0x1c
test eax, eax
jne 0x41c5f8
push 1
lea eax, [esp + 0x3c]
push 0x5c4908
push eax
call fcn.0042b280
add esp, 0xc
test eax, eax
jne 0x41c5f8
mov ecx, dword [esp + 0x4fc]
pop edi
pop esi
pop ebp
mov dword [ecx + 0x38], 0
pop ebx
add esp, 0x4dc
ret
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
xor ecx, ecx
cmp esi, 8
mov dword [ebx + 0x20], edx
setne cl
dec ecx
mov dword [ebx + 0x24], eax
and ecx, 0x100
mov esi, ecx
jmp 0x41c6e5
push 1
lea edx, [esp + 0x2c]
push str..LBM
push edx
call fcn.0042b280
add esp, 0xc
test eax, eax
je 0x41c6e1
push ebp
push 1
lea eax, [esp + 0x50]
push 0x1c
push eax
call fcn.0050a0f8
mov ecx, dword [esp + 0x6c]
lea edx, [ecx*8]
push edx
call fcn.005095d5
mov ecx, dword [esp + 0x70]
push ebp
mov dword [esp + 0x28], eax
lea edx, [ecx + ecx]
push edx
push 4
push eax
call fcn.0050a0f8
push ebp
push 1
lea eax, [esp + 0x64]
push 0xe
push eax
call fcn.0050a0f8
mov ecx, dword [esp + 0x76]
mov eax, dword [esp + 0x94]
add esp, 0x34
test eax, eax
lea esi, [ecx - 0xe]
je 0x41c69b
sub esi, 0x400
push esi
call fcn.005095d5
push ebp
mov edi, eax
push esi
push 1
push edi
call fcn.0050a0f8
mov edx, dword [edi + 4]
xor ecx, ecx
mov dword [ebx + 0x20], edx
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x24]
mov dword [ebx + 0x24], eax
cmp word [edi + 0xe], 8
push edx
setne cl
dec ecx
and ecx, 0x100
mov esi, ecx
call fcn.005089dd
push edi
call fcn.005089dd
add esp, 0x1c
jmp 0x41c6e5
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x20]
push 0
push 0
push 0
push eax
push ecx
call fcn.0041f390
mov edx, eax
add esp, 0x14
test edx, edx
mov dword [ebx + 0x38], edx
je 0x41c847
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x70]
push 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x74]
push 0
mov dword [esp + 0x78], 0x7c
mov eax, dword [edx]
push ecx
push 0
push edx
call dword [eax + 0x64]
xor edi, edi
mov dword [0x7e2768], eax
cmp eax, edi
jne 0x41cb81
mov eax, dword [0x5c45b0]
cmp esi, edi
je 0x41cba3
cmp eax, edi
jne 0x41c858
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0xec]
mov dword [ebx + 0x28], ecx
rep stosd dword es:[edi], eax
xor edi, edi
test esi, esi
jle 0x41c7d8
push ebp
push 1
lea eax, [esp + 0x3c]
push 1
push eax
call fcn.0050a0f8
push ebp
push 1
lea ecx, [esp + 0x3c]
push 1
push ecx
call fcn.0050a0f8
push ebp
push 1
lea edx, [esp + 0x48]
push 1
push edx
call fcn.0050a0f8
push ebp
push 1
lea eax, [esp + 0x53]
push 1
push eax
call fcn.0050a0f8
mov cl, byte [esp + 0x60]
mov dl, byte [esp + 0x64]
mov al, byte [esp + 0x74]
add esp, 0x40
mov byte [esp + edi*4 + 0xec], cl
mov byte [esp + edi*4 + 0xed], dl
mov byte [esp + edi*4 + 0xee], al
inc edi
cmp edi, esi
jl 0x41c76b
cmp edi, 0x100
jge 0x41c7ea
mov al, 0x80
mov byte [esp + edi*4 + 0xef], al
inc edi
cmp edi, 0x100
jl 0x41c7da
push 0x400
call fcn.005095d5
mov ecx, 0x100
lea esi, [esp + 0xf0]
mov edi, eax
mov dword [ebx + 0x58], eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x24]
add esp, 4
xor esi, esi
test eax, eax
jle 0x41cd38
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x94]
imul edx, esi
mov ecx, dword [ebx + 0x20]
push ebp
push 1
add edx, eax
push ecx
push edx
call fcn.0050a0f8
mov eax, dword [ebx + 0x24]
add esp, 0x10
inc esi
cmp esi, eax
jl 0x41c817
jmp 0x41cd38
mov dword [0x7e2768], 0
xor edi, edi
jmp 0x41c73d
cmp eax, 1
jl 0x41c979
cmp eax, 5
jg 0x41c979
lea eax, [esi + esi]
push eax
call fcn.005095d5
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x20], eax
push ecx
call fcn.005095d5
add esp, 8
xor edi, edi
test esi, esi
mov dword [esp + 0x10], eax
jle 0x41c8f2
push ebp
push 1
lea edx, [esp + 0x3c]
push 1
push edx
call fcn.0050a0f8
push ebp
push 1
lea eax, [esp + 0x3c]
push 1
push eax
call fcn.0050a0f8
push ebp
push 1
lea ecx, [esp + 0x48]
push 1
push ecx
call fcn.0050a0f8
push ebp
push 1
lea edx, [esp + 0x53]
push 1
push edx
call fcn.0050a0f8
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
add esp, 0x40
push 0
push eax
push ecx
push edx
call fcn.0041f7f0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
mov word [ecx + edi*2], ax
inc edi
cmp edi, esi
jl 0x41c88d
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x41c95d
mov ecx, dword [ebx + 0x20]
mov esi, dword [esp + 0x10]
push ebp
push 1
push ecx
push esi
call fcn.0050a0f8
mov edi, dword [esp + 0x90]
mov eax, dword [esp + 0xa4]
imul edi, dword [esp + 0x24]
mov ecx, dword [ebx + 0x20]
add edi, eax
add esp, 0x10
xor eax, eax
test ecx, ecx
jle 0x41c94d
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
mov cx, word [edx + ecx*2]
mov word [edi + eax*2 - 2], cx
mov ecx, dword [ebx + 0x20]
cmp eax, ecx
jl 0x41c937
mov eax, dword [esp + 0x14]
mov edx, dword [ebx + 0x24]
inc eax
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x41c908
mov edx, dword [esp + 0x1c]
push edx
call fcn.005089dd
mov eax, dword [esp + 0x14]
push eax
call fcn.005089dd
add esp, 8
jmp 0x41cd38
cmp eax, 6
jne 0x41ca7b
lea ecx, [esi + esi*2]
push ecx
call fcn.005095d5
mov edx, dword [ebx + 0x20]
mov edi, eax
push edx
mov dword [esp + 0x24], edi
call fcn.005095d5
add esp, 8
mov dword [esp + 0x10], eax
test esi, esi
jle 0x41c9e7
add edi, 2
push ebp
push 1
lea eax, [edi - 2]
push 1
push eax
call fcn.0050a0f8
push ebp
push 1
lea ecx, [edi - 1]
push 1
push ecx
call fcn.0050a0f8
push ebp
push 1
push 1
push edi
call fcn.0050a0f8
push ebp
push 1
lea edx, [esp + 0x53]
push 1
push edx
call fcn.0050a0f8
add esp, 0x40
add edi, 3
dec esi
jne 0x41c9a8
mov eax, dword [ebx + 0x24]
xor esi, esi
test eax, eax
mov dword [esp + 0x14], esi
jle 0x41ca5f
mov eax, dword [ebx + 0x20]
push ebp
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.0050a0f8
mov ecx, dword [esp + 0x90]
mov edi, dword [esp + 0xa4]
imul ecx, esi
mov eax, dword [ebx + 0x20]
add ecx, edi
add esp, 0x10
xor edi, edi
test eax, eax
jle 0x41ca53
mov edx, dword [esp + 0x10]
xor eax, eax
mov al, byte [edx + edi]
mov edx, dword [esp + 0x1c]
lea edx, [edx + eax*2]
add eax, edx
mov edx, ecx
add ecx, 3
inc edi
mov si, word [eax]
mov word [edx], si
mov al, byte [eax + 2]
mov byte [edx + 2], al
mov eax, dword [ebx + 0x20]
cmp edi, eax
jl 0x41ca24
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + 0x24]
inc esi
cmp esi, ecx
mov dword [esp + 0x14], esi
jl 0x41c9f7
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.005089dd
mov edx, dword [esp + 0x14]
push edx
call fcn.005089dd
add esp, 8
jmp 0x41cd38
cmp eax, 7
jne 0x41cb74
lea eax, [esi*4]
push eax
call fcn.005095d5
mov ecx, dword [ebx + 0x20]
mov edi, eax
push ecx
mov dword [esp + 0x24], edi
call fcn.005095d5
add esp, 8
mov dword [esp + 0x10], eax
test esi, esi
jle 0x41caed
add edi, 2
push ebp
push 1
lea edx, [edi - 2]
push 1
push edx
call fcn.0050a0f8
push ebp
push 1
lea eax, [edi - 1]
push 1
push eax
call fcn.0050a0f8
push ebp
push 1
push 1
push edi
call fcn.0050a0f8
push ebp
push 1
lea ecx, [esp + 0x53]
push 1
push ecx
call fcn.0050a0f8
add esp, 0x40
add edi, 4
dec esi
jne 0x41caae
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x41cb58
mov ecx, dword [ebx + 0x20]
mov esi, dword [esp + 0x10]
push ebp
push 1
push ecx
push esi
call fcn.0050a0f8
mov eax, dword [esp + 0x90]
mov edi, dword [esp + 0xa4]
imul eax, dword [esp + 0x24]
mov ecx, dword [ebx + 0x20]
add eax, edi
add esp, 0x10
xor edi, edi
test ecx, ecx
jle 0x41cb48
mov edx, dword [esp + 0x1c]
xor ecx, ecx
add eax, 4
mov cl, byte [esi + edi]
inc edi
mov ecx, dword [edx + ecx*4]
mov dword [eax - 4], ecx
mov ecx, dword [ebx + 0x20]
cmp edi, ecx
jl 0x41cb32
mov eax, dword [esp + 0x14]
mov edx, dword [ebx + 0x24]
inc eax
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x41cb03
mov edx, dword [esp + 0x1c]
push edx
call fcn.005089dd
mov eax, dword [esp + 0x14]
push eax
call fcn.005089dd
add esp, 8
jmp 0x41cd38
mov eax, dword [ebx + 0x38]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
mov eax, dword [ebx + 0x38]
cmp eax, edi
je 0x41cde9
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x38], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4dc
ret
cmp eax, 1
jl 0x41cc5b
cmp eax, 5
jg 0x41cc5b
mov eax, dword [ebx + 0x20]
lea eax, [eax + eax*2]
push eax
mov dword [esp + 0x24], eax
call fcn.005095d5
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x24]
add esp, 4
cmp eax, edi
mov dword [esp + 0x14], edi
jle 0x41cc51
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x94]
imul esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add esi, edi
mov edi, dword [esp + 0x20]
push ebp
push 1
push edi
push eax
call fcn.0050a0f8
add esp, 0x10
test edi, edi
jle 0x41cc41
mov ecx, dword [esp + 0x10]
or eax, 0xffffffff
sub eax, ecx
lea edi, [ecx + 1]
mov dword [esp + 0x24], eax
mov cl, byte [edi - 1]
mov dl, byte [edi]
mov al, byte [edi + 1]
push 0
push ecx
push edx
push eax
call fcn.0041f7f0
mov ecx, dword [esp + 0x34]
add edi, 3
mov word [esi], ax
mov eax, dword [esp + 0x30]
add ecx, edi
add esp, 0x10
add esi, 2
cmp ecx, eax
jl 0x41cc15
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x41cbd7
mov edx, dword [esp + 0x10]
push edx
jmp 0x41cd30
cmp eax, 6
jne 0x41cca0
mov eax, dword [ebx + 0x20]
xor esi, esi
lea edi, [eax + eax*2]
mov eax, dword [ebx + 0x24]
test eax, eax
jle 0x41cd38
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x94]
imul eax, esi
push ebp
push 1
add eax, edx
push edi
push eax
call fcn.0050a0f8
mov eax, dword [ebx + 0x24]
add esp, 0x10
inc esi
cmp esi, eax
jl 0x41cc73
jmp 0x41cd38
cmp eax, 7
jne 0x41cdcc
mov esi, dword [ebx + 0x20]
lea esi, [esi + esi*2]
push esi
call fcn.005095d5
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x24]
add esp, 4
cmp eax, edi
mov dword [esp + 0x14], edi
jle 0x41cd2b
mov edi, dword [esp + 0x80]
mov ecx, dword [esp + 0x10]
imul edi, dword [esp + 0x14]
mov eax, dword [esp + 0x94]
push ebp
push 1
push esi
push ecx
add edi, eax
call fcn.0050a0f8
add esp, 0x10
test esi, esi
jle 0x41cd1b
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
sub ecx, edx
lea eax, [edx + 1]
mov dl, byte [eax - 1]
add eax, 3
mov byte [edi], dl
mov dl, byte [eax - 3]
inc edi
mov byte [edi], dl
mov dl, byte [eax - 2]
inc edi
mov byte [edi], dl
lea edx, [ecx + eax]
add edi, 2
cmp edx, esi
jl 0x41ccfd
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x41ccc7
mov eax, dword [esp + 0x10]
push eax
call fcn.005089dd
add esp, 4
mov eax, dword [ebx + 0x38]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
mov eax, dword [0x5c45b0]
test eax, eax
jne 0x41cdec
mov edx, dword [0x5d5a0c]
mov dword [esp + 0x1c], 0
push 0
mov eax, dword [edx + 0x6ec]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0xf4]
mov ecx, dword [eax]
push edx
push 0x44
push eax
call dword [ecx + 0x14]
test eax, eax
mov dword [0x7e2768], eax
jne 0x41cdec
mov ebx, dword [ebx + 0x38]
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
mov eax, dword [ebx]
call dword [eax + 0x7c]
mov dword [0x7e2768], eax
test eax, eax
mov eax, dword [esp + 0x1c]
je 0x41cdb7
test eax, eax
je 0x41cdec
mov edx, dword [eax]
push eax
call dword [edx + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4dc
ret
test eax, eax
je 0x41cdec
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4dc
ret
mov eax, dword [ebx + 0x38]
push edi
push eax
mov edx, dword [eax]
call dword [edx + 0x80]
mov eax, dword [ebx + 0x38]
cmp eax, edi
je 0x41cde9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x38], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4dc
ret