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

Disassembly:
mov eax, 0x2314
call fcn.00496660
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2324]
mov ebx, ecx
push edi
mov ecx, esi
mov dword [esp + 0x48], ebx
call fcn.0048bcf0
push 0
mov edi, eax
push 0
mov ecx, esi
mov dword [esp + 0x68], edi
call fcn.0048c330
push 1
push edi
push 0x507808
mov ecx, esi
call fcn.0048c290
mov ecx, 0x507808
mov edx, dword [ecx]
mov eax, str.IMD
cmp edx, dword [eax]
je 0x42bb21
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x2314
ret 4
xor ebp, ebp
test edi, edi
jle 0x42bb36
mov al, 0x1a
cmp byte [ebp + 0x507808], al
je 0x42bb36
inc ebp
cmp ebp, edi
jl 0x42bb29
inc ebp
cmp ebp, edi
jl 0x42bb4a
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x2314
ret 4
xor eax, eax
mov ecx, 0xac
lea edi, [esp + 0x74]
push str.IMAGEDISK
rep stosd dword es:[edi], eax
lea eax, [esp + 0x78]
push 0x11
push eax
call fcn.00489320
lea edi, [ebx + 4]
mov dword [ebx + 0x40020c], 0
mov ecx, 0xac
lea esi, [esp + 0x80]
mov byte [esp + 0x9a], 0
mov dword [esp + 0x5c], edi
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x40020c]
add esp, 0xc
add eax, 0x2b0
mov dword [ebx + 0x40020c], eax
mov ebx, 0x2b0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0xffffffff
mov cl, byte [ebp + 0x507808]
mov dl, byte [ebp + 0x507809]
inc ebp
mov al, byte [ebp + 0x507809]
inc ebp
inc ebp
mov byte [esp + 0x11], al
mov al, byte [ebp + 0x507808]
inc ebp
mov byte [esp + 0x12], cl
mov cl, byte [ebp + 0x507808]
inc ebp
test al, al
mov byte [esp + 0x54], dl
mov byte [esp + 0x64], al
mov byte [esp + 0x13], cl
je 0x42bf4c
cmp cl, 0xff
je 0x42bb3b
cmp cl, 7
jae 0x42bc16
mov edx, 0x80
shl edx, cl
mov dword [esp + 0x2c], edx
jmp 0x42bc22
mov dword [esp + 0x2c], 0x2000
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x64]
mov cl, byte [esp + 0x11]
and edi, 0xff
lea esi, [ebp + 0x507808]
add ebp, edi
test cl, 0x80
mov dword [esp + 0x4c], edi
je 0x42bc64
lea ecx, [ebp + 0x507808]
test ecx, ecx
mov dword [esp + 0x38], ecx
je 0x42bc51
add ebp, edi
test byte [esp + 0x11], 0x40
je 0x42bc6e
lea ecx, [ebp + 0x507808]
mov dword [esp + 0x40], ecx
jmp 0x42bc78
mov dword [esp + 0x38], 0
jmp 0x42bc51
mov dword [esp + 0x40], 0
jmp 0x42bc7e
test ecx, ecx
je 0x42bc7e
add ebp, edi
mov cl, byte [esp + 0x11]
mov edi, dword [esp + 0x54]
and cl, 0x3f
mov byte [esp + 0x11], cl
and edi, 0xff
and ecx, 1
lea ecx, [ecx + edi*2]
cmp ecx, 0xa4
mov dword [esp + 0x6c], ecx
jge 0x42bcd2
cmp dword [esp + 0x3c], ecx
jge 0x42bcaf
mov dword [esp + 0x3c], ecx
mov byte [esp + ecx*4 + 0x94], bl
lea edi, [esp + ecx*4 + 0x74]
mov ecx, ebx
shr ecx, 8
mov byte [edi + 0x21], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 0x22], cl
mov ecx, ebx
shr ecx, 0x18
mov byte [edi + 0x23], cl
cmp dword [esp + 0x34], 0xffffffff
jne 0x42bce6
xor ecx, ecx
mov cl, byte [esp + 0x12]
and ecx, 3
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x4c]
test ecx, ecx
mov dword [esp + 0x58], 0
jle 0x42bf4c
mov cl, byte [esp + 0x12]
mov edi, dword [esp + 0x40]
movzx ax, al
mov dword [esp + 0x14], edi
mov dword [esp + 0x70], eax
shr ax, 8
cmp cl, 3
sbb cl, cl
mov word [esp + 0x46], ax
mov eax, dword [esp + 0x38]
sub eax, edi
mov dword [esp + 0x68], eax
and ecx, 0x40
sub esi, edi
mov byte [esp + 0x12], cl
mov dword [esp + 0x5c], esi
jmp 0x42bd3d
mov edi, dword [esp + 0x40]
mov cl, byte [esp + 0x12]
mov al, byte [ebp + 0x507808]
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x38]
inc ebp
test esi, esi
je 0x42bd6b
mov esi, dword [esp + 0x68]
mov ebx, dword [esp + 0x14]
mov bl, byte [esi + ebx]
jmp 0x42bd6f
mov bl, byte [esp + 0x54]
test edi, edi
mov byte [esp + 0x18], bl
je 0x42bd7f
mov esi, dword [esp + 0x14]
mov bl, byte [esi]
jmp 0x42bd83
mov bl, byte [esp + 0x11]
test al, al
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x14]
mov byte [esp + 0x19], bl
mov bl, byte [esi + edi]
mov byte [esp + 0x1a], bl
mov bl, byte [esp + 0x13]
mov byte [esp + 0x1b], bl
mov bl, byte [esp + 0x70]
mov byte [esp + 0x1c], bl
mov bl, byte [esp + 0x46]
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], cl
je 0x42be6a
cmp al, 8
ja 0x42be6a
cmp al, 3
je 0x42bdd6
cmp al, 4
je 0x42bdd6
cmp al, 7
je 0x42bdd6
cmp al, 8
je 0x42bdd6
xor cl, cl
jmp 0x42bdd8
mov cl, 0x10
cmp al, 5
mov byte [esp + 0x1f], cl
je 0x42bdf0
cmp al, 6
je 0x42bdf0
cmp al, 7
je 0x42bdf0
cmp al, 8
mov byte [esp + 0x20], cl
jne 0x42bdf5
mov byte [esp + 0x20], 0xb0
xor ebx, ebx
cmp al, 2
mov bl, dh
mov byte [esp + 0x26], dl
mov byte [esp + 0x27], bl
je 0x42be38
cmp al, 4
je 0x42be38
cmp al, 6
je 0x42be38
cmp al, 8
je 0x42be38
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea esi, [ebp + 0x507808]
lea edi, [esp + 0x324]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov ch, bl
mov cl, dl
add ebp, ecx
jmp 0x42be7a
xor eax, eax
mov al, byte [ebp + 0x507808]
mov ecx, edx
mov dl, al
mov dh, dl
mov esi, ecx
shr ecx, 2
lea edi, [esp + 0x324]
inc ebp
mov eax, edx
shl eax, 0x10
mov ax, dx
mov edx, dword [esp + 0x2c]
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x42be7a
xor bl, bl
mov byte [esp + 0x20], 0xf0
mov byte [esp + 0x26], 0
mov byte [esp + 0x27], bl
cmp dword [esp + 0x6c], 0xa4
jge 0x42bf2a
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x40020c]
lea edx, [ecx + 0x10]
cmp edx, 0x380000
ja 0x42bb3b
mov edx, dword [esp + 0x18]
lea ecx, [ecx + eax + 4]
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x20]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x40020c]
mov ecx, dword [esp + 0x26]
add edx, 0x10
mov dword [eax + 0x40020c], edx
xor eax, eax
mov ah, bl
and ecx, 0xff
and eax, 0xffff
or eax, ecx
lea ecx, [eax + edx]
cmp ecx, 0x380000
ja 0x42bb3b
mov edi, dword [esp + 0x50]
add edi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x324]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x48]
add dword [ecx + 0x40020c], eax
mov ecx, dword [esp + 0x30]
lea edx, [ecx + eax + 0x10]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
inc eax
inc esi
cmp eax, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x14], esi
jl 0x42bd35
mov ebx, dword [esp + 0x30]
cmp ebp, dword [esp + 0x60]
jl 0x42bbbc
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x42bf68
mov byte [esp + 0x8f], 0x20
jmp 0x42bf81
mov eax, dword [esp + 0x3c]
inc eax
and eax, 0xfffffffe
cmp eax, 0x78
setle cl
dec ecx
and ecx, 0x10
mov byte [esp + 0x8f], cl
mov edi, dword [esp + 0x50]
mov edx, ebx
mov eax, ebx
mov byte [esp + 0x90], bl
shr eax, 0x10
shr edx, 8
shr ebx, 0x18
mov byte [esp + 0x92], al
mov byte [esp + 0x93], bl
mov ecx, 0xac
lea esi, [esp + 0x74]
mov byte [esp + 0x91], dl
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x2314
ret 4