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

Disassembly:
sub esp, 0x88
mov eax, dword [0x100d92b4]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
push edi
mov dword [esp + 0x20], 9
mov eax, dword [ebp + 0x18]
and eax, 8
mov dword [esp + 0x48], eax
movzx eax, byte [ebp + 0x1c]
push eax
call fcn.1003eb60
movzx ecx, byte [ebp + 0x1d]
mov ebx, eax
push ecx
shl bl, 4
call fcn.1003eb60
add al, bl
mov byte [esp + 0x22], al
movzx eax, byte [ebp + 0x1e]
push eax
call fcn.1003eb60
movzx ecx, byte [ebp + 0x1f]
mov ebx, eax
push ecx
shl bl, 4
call fcn.1003eb60
add al, bl
mov byte [esp + 0x29], al
movzx eax, byte [ebp + 0x20]
push eax
call fcn.1003eb60
movzx ecx, byte [ebp + 0x21]
mov ebx, eax
push ecx
shl bl, 4
call fcn.1003eb60
add al, bl
mov byte [esp + 0x33], 0
mov byte [esp + 0x30], al
movzx eax, byte [ebp + 0x26]
push eax
call fcn.1003eb60
movzx ecx, byte [ebp + 0x27]
mov ebx, eax
push ecx
shl bl, 4
call fcn.1003eb60
add al, bl
mov byte [esp + 0x3e], al
movzx eax, byte [ebp + 0x28]
push eax
call fcn.1003eb60
movzx ecx, byte [ebp + 0x29]
mov ebx, eax
push ecx
shl bl, 4
call fcn.1003eb60
add al, bl
mov byte [esp + 0x45], al
movzx eax, byte [ebp + 0x2a]
push eax
call fcn.1003eb60
movzx ecx, byte [ebp + 0x2b]
mov ebx, eax
push ecx
shl bl, 4
call fcn.1003eb60
add al, bl
mov byte [esp + 0x4f], 0
add esp, 0x30
mov byte [esp + 0x1c], al
cmp dword [ebp], 0x90
jne 0x1005367c
mov edi, 1
lea esi, [esp + 0x75]
lea ebx, [edi + 7]
nop dword [eax]
push edi
call fcn.1003eb20
push edi
mov byte [esi + 1], al
call fcn.1003eae0
push edi
mov byte [esi], al
call fcn.1003eaa0
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x24]
mov byte [esi - 1], al
lea esi, [esi + 4]
mov byte [esi - 2], 0
add esp, 0xc
mov eax, dword [esi - 5]
cmp eax, dword [edx]
cmove ecx, edi
inc edi
mov dword [esp + 0x20], ecx
sub ebx, 1
jne 0x10053630
cmp ecx, 9
lea edx, [ebx + 4]
sete bl
add ebx, 9
jmp 0x10053686
mov edx, 1
mov ebx, 2
mov eax, dword [ebp + 0x76a0]
lea edi, [ebx*4 + 0x36]
mov ecx, dword [ebp + 0x76a4]
imul eax, edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], edi
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
imul ecx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
lea esi, [edi + ecx]
push esi
mov dword [esp + 0x28], esi
call fcn.1005b981
mov ebx, eax
add esp, 4
mov dword [esp + 0x30], ebx
test ebx, ebx
jne 0x10053726
movups xmm0, xmmword [str.602:_Insufficient_memory_for_BMP_file_buffer]
movups xmmword [ebp + 0x7638], xmm0
movups xmm0, xmmword [0x100c57b0]
movups xmmword [ebp + 0x7648], xmm0
movq xmm0, qword [0x100c57c0]
movq qword [ebp + 0x7658], xmm0
mov eax, dword [0x100c57c8]
mov dword [ebp + 0x7660], eax
mov al, byte [0x100c57cc]
mov byte [ebp + 0x7664], al
lea eax, [ebx + 0xb]
jmp 0x10053bc4
push esi
push 0
push ebx
call fcn.10058d80
mov ecx, dword [ebp + 0x76a4]
add esp, 0xc
add edi, ebx
cmp dword [ebp], 0x90
jne 0x100538f6
xor eax, eax
mov dword [esp + 0x10], eax
test ecx, ecx
jle 0x1005398c
mov edx, dword [esp + 0x28]
xor ecx, ecx
mov dword [esp + 0x14], ecx
nop
mov ebx, dword [ebp + 0x76a0]
xor esi, esi
test ebx, ebx
jle 0x100538da
mov eax, esi
cdq
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x10]
sar edx, 1
add edx, ecx
mov ecx, dword [ebp + 0x76a4]
sub ecx, eax
dec ecx
imul ecx, ebx
mov ebx, dword [esp + 0xa0]
add ecx, esi
movzx ecx, byte [ecx + ebx]
add ecx, 0xffffffcf
cmp ecx, 0x28
ja case.default.0x100537ab
movzx eax, byte [ecx + 0x10053c08]
jmp dword [eax*4 + 0x10053be0]
mov eax, esi
and eax, 0x80000001
jns 0x100537c0
dec eax
or eax, 0xfffffffe
inc eax
shl eax, 2
mov ecx, 4
sub ecx, eax
mov al, 1
jmp 0x100538ba
mov eax, esi
and eax, 0x80000001
jns 0x100537df
dec eax
or eax, 0xfffffffe
inc eax
shl eax, 2
mov ecx, 4
sub ecx, eax
mov al, 2
jmp 0x100538ba
mov eax, esi
and eax, 0x80000001
jns 0x100537fe
dec eax
or eax, 0xfffffffe
inc eax
shl eax, 2
mov ecx, 4
sub ecx, eax
mov al, 3
jmp 0x100538ba
mov eax, esi
and eax, 0x80000001
jns 0x1005381d
dec eax
or eax, 0xfffffffe
inc eax
shl eax, 2
mov ecx, 4
sub ecx, eax
mov al, 4
jmp 0x100538ba
mov eax, esi
and eax, 0x80000001
jns 0x1005383c
dec eax
or eax, 0xfffffffe
inc eax
shl eax, 2
mov ecx, 4
sub ecx, eax
mov al, 5
jmp 0x100538ba
mov eax, esi
and eax, 0x80000001
jns 0x10053858
dec eax
or eax, 0xfffffffe
inc eax
shl eax, 2
mov ecx, 4
sub ecx, eax
mov al, 6
jmp 0x100538ba
mov eax, esi
and eax, 0x80000001
jns 0x10053874
dec eax
or eax, 0xfffffffe
inc eax
shl eax, 2
mov ecx, 4
sub ecx, eax
mov al, 7
jmp 0x100538ba
mov eax, esi
and eax, 0x80000001
jns 0x10053890
dec eax
or eax, 0xfffffffe
inc eax
shl eax, 2
mov ecx, 4
sub ecx, eax
mov al, 8
jmp 0x100538ba
mov eax, esi
and eax, 0x80000001
jns 0x100538ac
dec eax
or eax, 0xfffffffe
inc eax
shl eax, 2
mov ecx, 4
sub ecx, eax
mov al, byte [esp + 0x20]
shl al, cl
add byte [edi + edx], al
mov eax, dword [esp + 0x10]
mov ebx, dword [ebp + 0x76a0]
inc esi
mov ecx, dword [esp + 0x14]
cmp esi, ebx
jl 0x10053770
mov edx, dword [esp + 0x28]
inc eax
add ecx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp eax, dword [ebp + 0x76a4]
jl 0x10053760
jmp 0x10053984
xor edx, edx
mov dword [esp + 0x14], edx
test ecx, ecx
jle 0x1005398c
mov dword [esp + 0x10], edx
mov dword [esp + 0x3c], 8
mov ebx, dword [ebp + 0x76a0]
xor esi, esi
mov eax, ecx
test ebx, ebx
jle 0x10053971
nop
mov eax, esi
cdq
idiv dword [esp + 0x3c]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x10]
add edx, eax
mov eax, ecx
sub ecx, dword [esp + 0x14]
dec ecx
imul ecx, ebx
mov ebx, dword [esp + 0xa0]
add ecx, esi
cmp byte [ecx + ebx], 0x31
jne 0x10053960
mov ecx, 7
mov al, 1
sub ecx, dword [esp + 0x40]
shl al, cl
add byte [edi + edx], al
mov eax, dword [ebp + 0x76a4]
mov ebx, dword [ebp + 0x76a0]
inc esi
mov ecx, eax
cmp esi, ebx
jl 0x10053920
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
inc edx
add dword [esp + 0x10], ecx
mov ecx, eax
mov dword [esp + 0x14], edx
cmp edx, eax
jl 0x10053910
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
movss xmm0, dword [ebp + 0x1d4]
ucomiss xmm0, dword [0x10086e20]
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0x76ac], eax
mov eax, dword [ebp + 0x76a0]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x76a4]
mov dword [esp + 0x54], eax
mov eax, 1
mov word [esp + 0x58], ax
mov eax, dword [esp + 0x34]
mov word [esp + 0x5a], ax
mov dword [esp + 0x4c], 0x28
lahf
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
test ah, 0x44
jnp 0x10053a14
mulss xmm0, dword [0x10086e4c]
push ecx
movss dword [esp], xmm0
call fcn.1003f3d0
fstp dword [esp]
call fcn.1005ba47
fstp dword [esp + 0x30]
cvttss2si eax, dword [esp + 0x30]
add esp, 4
jmp 0x10053a16
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov eax, 0x4d42
mov word [ebx], ax
mov eax, dword [esp + 0x44]
mov dword [ebx + 2], esi
mov dword [ebx + 6], 0
mov dword [ebx + 0xa], eax
movups xmm0, xmmword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
movups xmmword [ebx + 0xe], xmm0
movups xmm0, xmmword [esp + 0x5c]
movups xmmword [ebx + 0x1e], xmm0
movq xmm0, qword [esp + 0x6c]
movq qword [ebx + 0x2e], xmm0
mov dword [ebx + 0x36], eax
cmp dword [ebp], 0x90
jne 0x10053ac7
cmp dword [esp + 0x20], 9
mov eax, dword [esp + 0x74]
mov dword [ebx + 0x3a], eax
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x3e], eax
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0x42], eax
mov eax, dword [esp + 0x80]
mov dword [ebx + 0x46], eax
mov eax, dword [esp + 0x84]
mov dword [ebx + 0x4a], eax
mov eax, dword [esp + 0x88]
mov dword [ebx + 0x4e], eax
mov eax, dword [esp + 0x8c]
mov dword [ebx + 0x52], eax
mov eax, dword [esp + 0x90]
mov dword [ebx + 0x56], eax
jne 0x10053ace
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x5a], eax
jmp 0x10053ace
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x3a], eax
cmp dword [esp + 0x48], 0
je 0x10053b54
push 0x8000
push 1
call fcn.1005bb62
push eax
call fcn.10060327
add esp, 8
push eax
call fcn.1006067a
add esp, 8
cmp eax, 0xffffffff
jne 0x10053b33
call fcn.1005ba34
mov esi, dword [eax]
call fcn.1005ba34
push esi
mov edi, eax
call fcn.1005f081
push eax
push dword [edi]
lea eax, [ebp + 0x7638]
push str.600:_Could_not_set_stdout_to_binary___d:__.30s_
push eax
call fcn.100076e0
push ebx
call fcn.1005b966
add esp, 0x18
mov eax, 0xa
jmp 0x10053bc4
push 1
call fcn.1005bb62
mov esi, eax
push esi
push 1
push dword [esp + 0x30]
push ebx
call fcn.10060613
push esi
call fcn.1005bef6
add esp, 0x18
jmp 0x10053bb9
lea eax, [ebp + 0x38]
push 0x100c55b0
push eax
call fcn.1004daa0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10053ba3
push ebx
call fcn.1005b966
call fcn.1005ba34
mov esi, dword [eax]
call fcn.1005ba34
push esi
mov edi, eax
call fcn.1005f081
push eax
push dword [edi]
lea eax, [ebp + 0x7638]
push str.601:_Could_not_open_output_file___d:__.30s_
push eax
call fcn.100076e0
add esp, 0x18
mov eax, 0xa
jmp 0x10053bc4
push esi
push 1
push dword [esp + 0x2c]
push ebx
call fcn.10060613
push esi
call fcn.1005ae50
add esp, 0x14
push ebx
call fcn.1005b966
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10057052
add esp, 0x88
ret