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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30c
push ebx
xor ebx, ebx
push esi
push edi
xor edi, edi
inc edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0046a476
mov esi, eax
mov dword [esp + 0x7c], esi
cmp esi, ebx
jne 0x485297
xor eax, eax
jmp 0x4857e4
lea ecx, [esp + 0x3c]
push ecx
push dword [ebp + 0xc]
mov dword [esp + 0x44], ebx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
test eax, eax
jne 0x48533c
cmp dword [esp + 0x3c], ebx
je 0x48532f
mov edi, 0x104
push edi
lea eax, [esp + 0x8d]
push ebx
push eax
mov byte [esp + 0x94], bl
call fcn.0041b870
add esp, 0xc
push ebx
push edi
lea eax, [esp + 0x90]
push eax
push ebx
push dword [esp + 0x4c]
push ebx
push 0x1000
call dword [0x49c2e8]
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x194]
push 0x4a3260
push eax
call dword [0x49c544]
add esp, 0xc
cmp dword [ebp + 8], ebx
je 0x48532f
lea eax, [esp + 0x190]
push eax
push 0x10
push ebx
push 0x4fb
push dword [ebp + 8]
call fcn.004611c9
add esp, 0x14
push 1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
jmp 0x485290
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x54]
push eax
push dword [ebp + 0x10]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.0048153b
mov eax, dword [esp + 0x84]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x88]
add esp, 0x14
mov dword [esp + 0x1c], eax
cmp dword [esp + 0xc], ebx
je 0x4853bf
mov dword [esp + 0xc], ebx
cmp dword [esp + 0x48], ebx
je 0x4853a1
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x4c]
call fcn.00447ace
pop ecx
pop ecx
mov dword [esp + 0x48], ebx
cmp dword [esp + 0x4c], ebx
je 0x4853bb
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x50]
call fcn.0045dcfd
pop ecx
pop ecx
mov dword [esp + 0x4c], ebx
cmp dword [esp + 0x48], ebx
jne 0x4853d8
cmp dword [esp + 0x4c], ebx
jne 0x4853d8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
push edi
jmp 0x485331
push 0x20000
push 2
call dword [0x49c344]
push eax
call dword [0x49c348]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x48543f
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x14], ebx
call dword [eax + 0x24]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax]
cmp dword [esp + 0x48], ebx
je 0x48541c
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x4c]
call fcn.00447ace
pop ecx
pop ecx
mov dword [esp + 0x48], ebx
cmp dword [esp + 0x4c], ebx
je 0x485290
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x50]
call fcn.0045dcfd
pop ecx
pop ecx
jmp 0x485290
mov edi, dword [0x49c2e4]
push ebx
push ebx
push ebx
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x50], eax
call edi
mov dword [esp + 0x44], eax
lea eax, [esp + 0x84]
push eax
push ebx
lea eax, [esp + 0x48]
push eax
push 0x4815a8
push ebx
push ebx
mov dword [esp + 0x68], ebx
call dword [0x49c2e0]
mov dword [esp + 0x24], eax
cmp dword [ebp + 8], ebx
je 0x4854f9
push 0x1a4
call fcn.0041ba3a
pop ecx
cmp eax, ebx
je 0x4854bd
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
mov byte [eax + 0x8c], bl
mov byte [eax + 0xc], bl
mov dword [eax + 0x18c], ebx
mov dword [eax + 0x190], ebx
mov dword [eax + 0x194], ebx
mov dword [eax + 0x198], ebx
mov esi, eax
jmp 0x4854bf
xor esi, esi
mov eax, dword [ebp + 8]
push ebx
push 0xff00ff
push dword [ebp + 0x10]
mov edi, 0x46a326
mov ecx, str.WRITELARGEIMAMAKEJAUGE
mov dword [esp + 0x1c], esi
call fcn.00413fe0
mov dword [esi + 0x18c], 0x47c
call fcn.00411340
mov eax, dword [esi + 4]
mov esi, dword [esp + 0x7c]
mov dword [0x4be30c], eax
or dword [esp + 0x78], 0xffffffff
mov dword [0x4bde68], ebx
cmp dword [esp + 0x74], ebx
ja 0x485514
cmp dword [esp + 0x70], ebx
jbe 0x485727
cmp dword [0x4bde68], ebx
jne 0x485715
cmp dword [esp + 0x28], ebx
je 0x485625
push 0xffffffffffffffff
push dword [esp + 0x48]
call dword [0x49c2f0]
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x5c], ebx
jne 0x4856f6
mov eax, dword [esp + 0x68]
cmp eax, dword [esp + 0x58]
jne 0x4856f6
sub dword [esp + 0x18], eax
mov edx, dword [esi]
lea ecx, [esp + 0x20]
sbb dword [esp + 0x1c], ebx
add dword [esp + 0x30], eax
push ecx
lea ecx, [esp + 0x84]
adc dword [esp + 0x38], ebx
push ecx
push eax
push dword [esp + 0x60]
mov ecx, esi
mov dword [esp + 0x90], ebx
mov dword [esp + 0x30], ebx
call dword [edx + 0x20]
cmp dword [esp + 0x20], ebx
je 0x48560a
mov edi, 0x104
push edi
lea eax, [esp + 0x8d]
push ebx
push eax
mov byte [esp + 0x94], bl
call fcn.0041b870
add esp, 0xc
push ebx
push edi
lea eax, [esp + 0x90]
push eax
push ebx
push dword [esp + 0x30]
push ebx
push 0x1000
call dword [0x49c2e8]
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x198]
push dword [ebp + 0xc]
push str.Disk__u__error__u_:__s
push eax
call dword [0x49c544]
add esp, 0x14
cmp dword [ebp + 8], ebx
je 0x48560a
lea eax, [esp + 0x190]
push eax
push 0x10
push ebx
push 0x4fb
push dword [ebp + 8]
call fcn.004611c9
add esp, 0x14
mov eax, dword [esp + 0x80]
cmp eax, dword [esp + 0x68]
jne 0x4856e6
cmp dword [esp + 0x20], ebx
jne 0x4856e6
cmp dword [esp + 0x1c], ebx
ja 0x485631
cmp dword [esp + 0x18], ebx
jbe 0x485686
cmp dword [0x4bde68], ebx
jne 0x485686
cmp dword [esp + 0x1c], ebx
ja 0x48564a
mov eax, dword [esp + 0x18]
cmp eax, 0x10000
jbe 0x48564f
mov eax, 0x10000
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0x2c], ebx
jne 0x48565f
add ecx, 0x10000
push dword [esp + 0x40]
mov dword [esp + 0x5c], eax
xor eax, eax
cmp dword [esp + 0x30], ebx
mov dword [esp + 0x58], ecx
sete al
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], eax
call dword [0x49c2ec]
push ebx
push 0x64
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.0042aca0
push dword [esp + 0x74]
push dword [esp + 0x74]
push edx
push eax
call fcn.00430a90
cmp eax, dword [esp + 0x78]
je 0x4856c5
mov dword [esp + 0x78], eax
cmp dword [esp + 0x10], ebx
je 0x4856c5
mov esi, dword [esp + 0x10]
push ebx
mov edi, eax
call fcn.004090f0
mov esi, dword [esp + 0x7c]
push dword [ebp + 8]
call fcn.004599b3
pop ecx
cmp dword [esp + 0x1c], ebx
ja 0x485514
jb 0x485715
cmp dword [esp + 0x18], ebx
ja 0x485514
jmp 0x485715
mov dword [esp + 0x14], ebx
mov dword [0x4bde68], 1
jmp 0x485727
cmp dword [ebp + 8], ebx
je 0x485711
push dword [ebp + 0x10]
push 0x10
push ebx
push 0x410
push dword [ebp + 8]
call fcn.004611c9
add esp, 0x14
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x28], ebx
je 0x485727
push 0xffffffffffffffff
push dword [esp + 0x48]
call dword [0x49c2f0]
push dword [esp + 0x40]
xor edi, edi
inc edi
mov dword [esp + 0x54], edi
call dword [0x49c2ec]
push 0xffffffffffffffff
push dword [esp + 0x28]
call dword [0x49c2f0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax]
push dword [esp + 0x40]
mov esi, dword [0x49c30c]
call esi
push dword [esp + 0x44]
call esi
push dword [esp + 0x24]
call esi
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x48], ebx
je 0x485784
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x4c]
call fcn.00447ace
pop ecx
pop ecx
mov dword [esp + 0x48], ebx
cmp dword [esp + 0x4c], ebx
je 0x48579e
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x50]
call fcn.0045dcfd
pop ecx
pop ecx
push dword [esp + 0xc]
mov esi, dword [0x49c32c]
mov dword [esp + 0x50], ebx
call esi
push eax
call dword [0x49c33c]
push dword [esp + 0xc]
call esi
push eax
call dword [0x49c334]
cmp dword [esp + 0x10], ebx
je 0x4857e0
push dword [esp + 0x10]
mov dword [0x4be30c], ebx
call fcn.00448b93
push dword [esp + 0x10]
call fcn.004652f8
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret