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

Disassembly:
push ebp
mov ebp, esp
push ebp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push 1
call fcn.0040fa01
cmp byte [esi + 0x7595], 0
je 0x54b2a2
mov word [esi + 0x7590], 0
push dword [ebp + 8]
call fcn.0054ae1e
mov ebx, eax
cmp eax, reloc.gdi32.dll_AbortDoc
je 0x54bb62
cmp eax, 1
jne 0x54b31c
mov ecx, dword [ebp + 8]
push 0xc8
push dword [ecx + 0x4c]
push 0
push dword [esi + 0x7594]
push 0
push 0x5c62e8
push 0
push 0
push 0x17
lea eax, reloc.gdi32.dll_AbortDoc
push eax
push 0xa47
push 1
push 0
push 0x5c62e8
push 0
push 0
push 0
push 0x5c62e8
push 0
push 0
push 0x107
add eax, 0x3188
push eax
push 0xa49
push 0
push 0x5c62e8
push 0
call fcn.004ad8d2
test ebx, ebx
jne 0x54bb62
call sub.kernel32.dll_GetTickCount
mov dword [esi + 0x34], eax
push esi
lea eax, [esi + 8]
push eax
call fcn.00534838
mov dx, word [esi + 0x7590]
test dl, 2
jne 0x54b354
test dl, 0x40
jne 0x54b354
test dl, 0x80
jne 0x54b354
cmp byte [esi + 0x7595], bl
je 0x54b361
fld qword [esi]
fstp qword [esi + 0x10]
fld qword [esi + 8]
fstp qword [esi + 0x18]
jmp 0x54b37d
mov dword [esi + 0x10], reloc.gdi32.dll_AbortDoc
mov dword [esi + 0x14], 0x7fefffff
mov dword [esi + 0x18], reloc.gdi32.dll_AbortDoc
mov dword [esi + 0x1c], 0xffefffff
mov dword [esi + 0x2c], ebx
mov edx, 0x2b8
cmp byte [esi + edx + 0xb0], 0
je 0x54b39e
mov ebx, dword [esi + edx - reloc.gdi32.dll_AbortDoc]
cmp ebx, dword [esi + 0x2c]
jle 0x54b39e
mov dword [esi + 0x2c], ebx
add edx, 0x2b8
cmp edx, 0x4140
jbe 0x54b385
test byte [esi + 0x7590], 0x80
jne 0x54b3c2
cmp byte [esi + 0x7595], 0
je 0x54b47b
mov edi, 1
imul eax, edi, 0x2b8
lea ebx, [esi + eax - 0x200]
cmp byte [ebx + 0x2b0], 0
je 0x54b457
mov eax, dword [ebx + 0x98]
cmp eax, 0
jle 0x54b457
lea eax, [eax*8 + 0xc]
push eax
lea eax, [ebx + 0x88]
push eax
call sub.mclib32.dll__ALLOCATE_8
cmp dword [ebx + 0x88], 0
je 0x54b41b
add dword [ebx + 0x88], 4
mov ecx, dword [ebx + 0x88]
mov eax, dword [ebx + 0x98]
mov dword [ecx - 4], eax
cmp dword [ebx + 0x88], 0
je 0x54bb57
cmp byte [esi + 0x7595], 0
je 0x54b445
push edi
push dword [ebx + 0x98]
call fcn.0040d810
test al, al
je 0x54bb62
push edi
push dword [ebx + 0x88]
push dword [ebx + 0x98]
call fcn.0040dab3
inc edi
cmp edi, 0x18
jle 0x54b3c7
lea eax, [esi + 0x10]
push eax
add eax, 8
push eax
call fcn.00534838
cmp byte [esi + 0x7595], 0
jne 0x54bb82
mov edi, 1
rol dword [0x5cb780], 1
test byte [0x5cb780], 1
je 0x54b4a5
rol dword [0x5cb784], 1
test byte [0x5cb784], 1
je 0x54b4a5
call fcn.0040f884
jmp 0x54b4a7
mov al, 0
test al, al
jne 0x54bb62
imul eax, edi, 0x2b8
mov dword [ebp - 0xc], eax
lea ebx, [esi + eax - 0x200]
cmp byte [ebx + 0x2b0], 0
je 0x54bac0
mov edx, dword [ebx + 0x98]
cmp edx, 0
jle 0x54bac0
test byte [esi + 0x7590], 0x80
je 0x54b55e
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], edx
mov dword [ebp - 8], 1
jmp 0x54b534
fld qword [0x5c62e0]
push edi
push eax
call fcn.0040d401
fcompp
wait
fnstsw ax
test ah, 0x40
jne 0x54b52f
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
je 0x54b52f
push edi
push eax
push edi
push dword [ebp - 8]
call fcn.0040d401
sub esp, 8
fstp qword [esp]
call fcn.0040d42c
inc dword [ebp - 8]
jo 0x54b53c
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x24]
jle 0x54b4f7
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x98], eax
test byte [esi + 0x7590], 0x80
je 0x54b55e
push edi
push eax
call fcn.0040d810
test al, al
jne 0x54b5bc
jmp 0x54bb62
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + eax - reloc.gdi32.dll_AbortDoc]
test ecx, ecx
je 0x54b583
push ecx
mov eax, dword [ecx - 4]
push dword [0x5cb670]
lea eax, [eax*4 + 4]
push eax
call fcn.00405e12
push edi
push dword [ebx + 0x98]
call fcn.0040d7cc
test al, al
je 0x54bb62
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + eax - reloc.gdi32.dll_AbortDoc]
test ecx, ecx
je 0x54b5bc
push dword [0x5cb670]
push ecx
mov eax, dword [ecx - 4]
lea eax, [eax*4 + 4]
push eax
call fcn.00405e12
cmp dword [ebx + 0x98], 0
jle 0x54bac0
push edi
push dword [ebx + 0x98]
push ebx
lea eax, [ebx + 8]
push eax
add eax, 8
push eax
add eax, 0x38
push eax
add eax, 8
push eax
call fcn.004f32a5
test al, al
je 0x54bb62
mov dx, word [esi + 0x7590]
test dl, 8
jne 0x54b60d
test dl, 0x10
jne 0x54b60d
test dl, 0x20
jne 0x54b60d
test dh, 1
je 0x54b8e2
cmp dword [esi + 0x24], 1
jne 0x54b6f2
fld qword [ebx]
fstp qword [ebx + 0x30]
mov edx, dword [esi + 0x28]
dec edx
cmp edx, 5
ja case.default.0x54b629
jmp dword [edx*4 + 0x54b630]
mov eax, dword [ebx + 0x98]
dec eax
push eax
call fcn.004aa235
fstp qword [ebp - 0x20]
push dword [ebx + 4]
push dword [ebx]
fld qword [ebx + 0x10]
fmul qword [ebp - 0x20]
jmp 0x54b690
push dword [ebx + 4]
push dword [ebx]
push dword [ebx + 0xc]
push dword [ebx + 8]
jmp 0x54b6a3
push dword [ebx + 4]
push dword [ebx]
fld qword [ebx + 8]
fmul dword [0x5c62f8]
jmp 0x54b690
push dword [ebx + 4]
push dword [ebx]
fld qword [ebx + 8]
fmul dword [0x5c62fc]
sub esp, 8
fstp qword [esp]
jmp 0x54b6a3
push dword [ebx + 4]
push dword [ebx]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
lea eax, [ebx + 0x38]
push eax
add eax, 8
push eax
call fcn.0054b229
jmp case.default.0x54b629
fld qword [ebx + 0x48]
fstp qword [ebx + 0x38]
fld qword [ebx + 0x50]
fstp qword [ebx + 0x40]
fld qword [esi + 0x18]
fcomp qword [ebx + 0x50]
wait
fnstsw ax
test ah, 1
je 0x54b6d5
fld qword [ebx + 0x50]
fstp qword [esi + 0x18]
fld qword [esi + 0x10]
fcomp qword [ebx + 0x48]
wait
fnstsw ax
test ah, 0x41
jne case.default.0x54b629
fld qword [ebx + 0x48]
fstp qword [esi + 0x10]
jmp case.default.0x54b629
mov dword [ebx + 0x38], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x3c], 0x7fefffff
mov dword [ebx + 0x40], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x44], 0x7fefffff
push edi
push dword [ebx + 0x98]
push 0x40490000
push 0
lea eax, [ebx + 0x30]
push eax
call fcn.0043d45b
mov edx, dword [esi + 0x28]
dec edx
cmp edx, 6
ja case.default.0x54b732
jmp dword [edx*4 + 0x54b739]
push edi
push 0x5f
push 0x40490000
push 0
push dword [ebx + 0x98]
push 0
lea eax, [ebx + 0x38]
push eax
add eax, 8
push eax
call fcn.0043da1a
test al, al
jne case.default.0x54b732
mov dword [ebx + 0x38], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x3c], 0x7fefffff
mov dword [ebx + 0x40], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x44], 0x7fefffff
jmp case.default.0x54b732
push edi
push dword [ebx + 0x98]
push 0x40390000
push 0
lea eax, [ebx + 0x38]
push eax
call fcn.0043d45b
push edi
push dword [ebx + 0x98]
push 0x4052c000
jmp 0x54b865
push edi
push dword [ebx + 0x98]
push 0x40240000
push 0
lea eax, [ebx + 0x38]
push eax
call fcn.0043d45b
push edi
push dword [ebx + 0x98]
push 0x40568000
jmp 0x54b865
push edi
push dword [ebx + 0x98]
push 0x40140000
push 0
lea eax, [ebx + 0x38]
push eax
call fcn.0043d45b
push edi
push dword [ebx + 0x98]
push 0x4057c000
jmp 0x54b865
push edi
push dword [ebx + 0x98]
push 0x3ff00000
push 0
lea eax, [ebx + 0x38]
push eax
call fcn.0043d45b
push edi
push dword [ebx + 0x98]
push 0x4058c000
jmp 0x54b865
fld qword [ebx + 0x48]
fstp qword [ebx + 0x38]
fld qword [ebx + 0x50]
fstp qword [ebx + 0x40]
jmp case.default.0x54b732
push edi
push dword [ebx + 0x98]
push 0x40040000
push 0
lea eax, [ebx + 0x38]
push eax
call fcn.0043d45b
push edi
push dword [ebx + 0x98]
push 0x40586000
push 0
lea eax, [ebx + 0x40]
push eax
call fcn.0043d45b
fld qword [0x5c62e0]
fcomp qword [ebx + 0x38]
wait
fnstsw ax
test ah, 0x40
jne 0x54b895
fld qword [esi + 0x10]
fcomp qword [ebx + 0x38]
wait
fnstsw ax
test ah, 0x41
jne 0x54b895
fld qword [ebx + 0x38]
fstp qword [esi + 0x10]
fld qword [0x5c62e0]
fcomp qword [ebx + 0x40]
wait
fnstsw ax
test ah, 0x40
jne case.default.0x54b629
fld qword [esi + 0x18]
fcomp qword [ebx + 0x40]
wait
fnstsw ax
test ah, 1
je case.default.0x54b629
fld qword [ebx + 0x40]
fstp qword [esi + 0x18]
fld qword [esi + 0x18]
fcomp qword [ebx + 0x30]
wait
fnstsw ax
test ah, 1
je 0x54b8ce
fld qword [ebx + 0x30]
fstp qword [esi + 0x18]
fld qword [esi + 0x10]
fcomp qword [ebx + 0x30]
wait
fnstsw ax
test ah, 0x41
jne 0x54b8e2
fld qword [ebx + 0x30]
fstp qword [esi + 0x10]
test byte [esi + 0x7590], 2
je 0x54bac0
push edi
push dword [ebx + 0x98]
push 0x40390000
push 0
lea eax, [ebx + 0x18]
push eax
call fcn.0043d45b
push edi
push dword [ebx + 0x98]
push 0x40490000
push 0
lea eax, [ebx + 0x20]
push eax
call fcn.0043d45b
push edi
push dword [ebx + 0x98]
push 0x4052c000
push 0
lea eax, [ebx + 0x28]
push eax
call fcn.0043d45b
cmp dword [ebx + 0x98], 1
je 0x54b94b
fld qword [ebx + 0x50]
fcomp qword [ebx + 0x48]
wait
fnstsw ax
test ah, 0x40
je 0x54b97b
fld qword [ebx + 0x48]
fstp qword [ebx + 0x78]
fld qword [ebx + 0x50]
fstp qword [ebx + 0x80]
mov dword [ebx + 0x68], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x6c], 0x7fefffff
mov dword [ebx + 0x70], reloc.gdi32.dll_AbortDoc
mov dword [ebx + 0x74], 0x7fefffff
jmp 0x54ba48
fld qword [ebx + 0x18]
fld qword [ebx + 0x28]
fsub qword [ebx + 0x18]
fmul dword [0x5c62fc]
fsubp st(1)
fstp qword [ebx + 0x68]
fld qword [ebx + 0x28]
fsub qword [ebx + 0x18]
fmul dword [0x5c62fc]
fadd qword [ebx + 0x28]
fstp qword [ebx + 0x70]
fld qword [ebx + 0x18]
fld qword [ebx + 0x28]
fsub qword [ebx + 0x18]
fmul dword [0x5c6300]
fsubp st(1)
fstp qword [ebp - 0x18]
mov dword [ebp - 8], 1
jmp 0x54b9c1
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 0x98]
jge 0x54b9e0
fld qword [ebp - 0x18]
push edi
push eax
call fcn.0040d401
fcompp
wait
fnstsw ax
test ah, 1
jne 0x54b9be
push edi
push dword [ebp - 8]
call fcn.0040d401
fstp qword [ebx + 0x78]
mov eax, dword [ebp - 8]
mov dword [ebx + 0x90], eax
fld qword [ebx + 0x28]
fsub qword [ebx + 0x18]
fmul dword [0x5c6300]
fadd qword [ebx + 0x28]
fstp qword [ebp - 0x18]
jmp 0x54ba0f
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 0x98]
jg 0x54ba2e
fld qword [ebp - 0x18]
push edi
push eax
call fcn.0040d401
fcompp
wait
fnstsw ax
test ah, 0x41
jne 0x54ba09
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 0x28], eax
push edi
push eax
call fcn.0040d401
fstp qword [ebx + 0x80]
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x94], eax
cmp byte [esi + 0x7592], 0
je 0x54bac0
fld qword [ebx + 0x28]
fsub qword [ebx + 0x18]
sub esp, 8
fstp qword [esp]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [ebx + 0x98]
lea eax, [ebx + 0x58]
push eax
add eax, 8
push eax
call fcn.0043d657
fld qword [0x5c62e0]
fcomp qword [ebx + 0x58]
wait
fnstsw ax
test ah, 0x40
jne 0x54ba9b
fld qword [esi + 0x10]
fcomp qword [ebx + 0x58]
wait
fnstsw ax
test ah, 0x41
jne 0x54ba9b
fld qword [ebx + 0x58]
fstp qword [esi + 0x10]
fld qword [0x5c62e0]
fcomp qword [ebx + 0x60]
wait
fnstsw ax
test ah, 0x40
jne 0x54bac0
fld qword [esi + 0x18]
fcomp qword [ebx + 0x60]
wait
fnstsw ax
test ah, 1
je 0x54bac0
fld qword [ebx + 0x60]
fstp qword [esi + 0x18]
inc edi
cmp edi, 0x18
jle 0x54b480
lea eax, [esi + 0x10]
push eax
add eax, 8
push eax
call fcn.00534838
mov dx, word [esi + 0x7590]
test dl, 2
jne 0x54baec
test dl, 0x40
je 0x54bb82
test dl, 0x80
jne 0x54bb82
mov edi, 1
imul eax, edi, 0x2b8
lea ebx, [esi + eax - 0x200]
cmp byte [ebx + 0x2b0], 0
je 0x54bb78
mov eax, dword [ebx + 0x98]
cmp eax, 0
jle 0x54bb78
lea eax, [eax*8 + 0xc]
push eax
lea eax, [ebx + 0x88]
push eax
call sub.mclib32.dll__ALLOCATE_8
cmp dword [ebx + 0x88], 0
je 0x54bb4e
add dword [ebx + 0x88], 4
mov ecx, dword [ebx + 0x88]
mov eax, dword [ebx + 0x98]
mov dword [ecx - 4], eax
cmp dword [ebx + 0x88], 0
jne 0x54bb66
push dword [0x5cbb00]
call fcn.00418009
mov al, 0
jmp 0x54bb84
push edi
push dword [ebx + 0x88]
push dword [ebx + 0x98]
call fcn.0040dab3
inc edi
cmp edi, 0x18
jle 0x54bafa
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4