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

Disassembly:
sub esp, 0x70
mov eax, dword [esp + 0x74]
push ebx
and eax, 0xffff
push ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x7e]
push esi
mov esi, ecx
and eax, 0xffff
push edi
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
shr eax, 8
and eax, 3
mov dword [esp + 0x30], 0
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x78]
cmp eax, 4
jae 0x54c3aa
mov cl, byte [eax*4 + 0x7af2a8]
mov dl, byte [eax*4 + 0x7af2a9]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov byte [esp + 0x15], cl
mov cl, byte [eax*4 + 0x7af2aa]
mov byte [esp + 0x16], dl
mov dl, byte [eax*4 + 0x7af2ab]
movsx eax, byte [esp + 0x8c]
mov byte [esp + 0x14], cl
mov byte [esp + 0x13], dl
mov edx, dword [esi + 0xe]
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], eax
add eax, eax
mov word [esp + 0x38], di
mov word [esp + 0x3a], bp
push ecx
mov ecx, dword [edx + 0x1105]
mov dword [esp + 0x2c], eax
call fcn.005526ac
mov ecx, dword [esi + 0xa]
mov bl, al
push ebp
push edi
mov eax, dword [ecx]
call dword [eax + 0x1fc]
test eax, eax
je 0x54bb84
mov eax, dword [esp + 0x28]
test eax, eax
je 0x54bb7c
cmp bl, 1
je 0x54bb35
cmp bl, 2
je 0x54bb35
mov ecx, dword [esi + 0xa]
push ebp
push edi
mov edx, dword [ecx]
call dword [edx + 0x1d8]
test word [eax + 2], 0xfff
je 0x54bb7c
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x3c]
movsx ecx, byte [esp + 0x15]
dec eax
add edi, ecx
mov dword [esp + 0x28], eax
mov word [esp + 0x3c], di
movsx eax, byte [esp + 0x16]
add ebp, eax
mov eax, dword [esi + 0xe]
mov word [esp + 0x3e], bp
push edx
mov ecx, dword [eax + 0x1105]
call fcn.005526ac
mov ecx, dword [esi + 0xa]
push ebp
push edi
mov bl, al
mov edx, dword [ecx]
call dword [edx + 0x1fc]
test eax, eax
jne 0x54bb0e
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x28]
test eax, eax
je 0x54c335
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0xa]
push edx
mov edx, dword [esp + 0x24]
mov eax, dword [ecx]
push edx
call dword [eax + 0x1fc]
test eax, eax
je 0x54c335
mov ecx, dword [esi + 0xa]
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
push ebp
mov eax, dword [ecx]
push edi
call dword [eax + 0x6c]
test byte [eax + 0x17b], 1
je 0x54bbdf
mov ecx, dword [esi + 0xa]
push ebp
push edi
mov edx, dword [ecx]
call dword [edx + 0x6c]
test byte [eax + 0x17b], 8
je 0x54c335
mov eax, dword [esp + 0x84]
mov dword [esi + 0x86], eax
mov eax, dword [esi + 0x4b2]
test al, 0x3c
je 0x54bc6e
shr eax, 2
and eax, 0xf
mov dword [esp + 0x34], 0
test al, al
jle 0x54bc6e
movsx ebx, byte [esp + 0x16]
movsx eax, byte [esp + 0x15]
mov ecx, dword [esi + 0xa]
add ebp, ebx
add edi, eax
push ebp
mov edx, dword [ecx]
push edi
call dword [edx + 0x1fc]
test eax, eax
je 0x54c3aa
mov ecx, dword [esi + 0xa]
push ebp
push edi
mov eax, dword [ecx]
call dword [eax + 0x6c]
test byte [eax + 0x17b], 1
je 0x54bc55
mov ecx, dword [esi + 0xa]
push ebp
push edi
mov edx, dword [ecx]
call dword [edx + 0x6c]
test byte [eax + 0x17b], 8
je 0x54c3aa
mov ecx, dword [esi + 0x4b2]
mov eax, dword [esp + 0x34]
shr ecx, 2
inc eax
and ecx, 0xf
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x54bc0d
mov ecx, dword [esp + 0x2c]
mov word [esp + 0x40], di
mov word [esp + 0x42], bp
mov edx, dword [esp + 0x40]
mov eax, ecx
mov dword [esi + 0x82], edx
cdq
sub eax, edx
mov byte [esi + 0x95], 0
movsx edx, byte [esp + 0x16]
sar eax, 1
imul edx, eax
add edi, edx
movsx edx, byte [esp + 0x15]
imul edx, eax
xor eax, eax
add ebp, edx
cmp ecx, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
jle 0x54bdad
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x54bfa9
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
test ebx, ebx
mov dword [esp + 0x34], 0
jle 0x54bd95
mov ecx, dword [esi + 0xa]
push ebp
push edi
mov eax, dword [ecx]
call dword [eax + 0x1fc]
test eax, eax
je 0x54bd89
mov edx, dword [esi + 0xe]
lea ecx, [esp + 0x44]
mov word [esp + 0x44], di
mov word [esp + 0x46], bp
push ecx
mov ecx, dword [edx + 0x1105]
call fcn.005526ac
mov ecx, dword [esi + 0xa]
add ecx, 0x9da
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x14]
imul eax, ebp
add eax, edi
xor ecx, ecx
shl eax, 4
add eax, edx
mov cl, byte [eax + 0xa]
mov ecx, dword [ecx*4 + 0x6b8a88]
test byte [ecx + 0x17b], 8
jne 0x54bd6f
mov dl, byte [ecx + 0x1cb]
and dl, 1
cmp dl, 1
je 0x54bd6f
mov cx, word [eax + 8]
mov edx, dword [esi + 0xe]
and ecx, 0xfff
cmp cx, word [edx + 4]
jne 0x54bd89
test word [eax + 2], 0xfff
jne 0x54bd89
movsx ecx, byte [esp + 0x14]
mov eax, dword [esp + 0x34]
add edi, ecx
inc eax
cmp eax, ebx
mov dword [esp + 0x34], eax
jl 0x54bce6
jmp 0x54bd95
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], 1
movsx edx, byte [esp + 0x13]
mov eax, dword [esp + 0x28]
add ebp, edx
inc eax
cmp eax, ebx
mov dword [esp + 0x28], eax
jl 0x54bcc2
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x54bfa9
movsx ecx, byte [esp + 0x14]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
xor edx, edx
sub edi, ecx
cmp eax, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x58], edi
jle 0x54be30
mov ebp, eax
mov dword [esp + 0x28], ebp
mov ecx, dword [esi + 0xe]
lea eax, [esp + 0x48]
mov word [esp + 0x48], di
mov word [esp + 0x4a], bx
mov ecx, dword [ecx + 0x1105]
push eax
call fcn.005526ac
cmp al, 1
je 0x54be1e
cmp al, 2
je 0x54be1e
mov ecx, dword [esi + 0xa]
push ebx
push edi
mov edx, dword [ecx]
call dword [edx + 0x208]
test eax, eax
jne 0x54be22
inc dword [esp + 0x24]
movsx eax, byte [esp + 0x13]
add ebx, eax
dec ebp
jne 0x54bde8
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov edi, ecx
imul edi, eax
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
add edi, edx
test eax, eax
jle 0x54be97
mov ebp, eax
mov eax, dword [esp + 0x28]
add eax, ebp
mov dword [esp + 0x28], eax
mov ecx, dword [esi + 0xe]
lea eax, [esp + 0x4c]
mov word [esp + 0x4c], di
mov word [esp + 0x4e], bx
mov ecx, dword [ecx + 0x1105]
push eax
call fcn.005526ac
cmp al, 1
je 0x54be89
cmp al, 2
je 0x54be89
mov ecx, dword [esi + 0xa]
push ebx
push edi
mov edx, dword [ecx]
call dword [edx + 0x208]
test eax, eax
jne 0x54be8d
inc dword [esp + 0x24]
movsx eax, byte [esp + 0x13]
add ebx, eax
dec ebp
jne 0x54be53
movsx ebp, byte [esp + 0x13]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x58]
add eax, 2
sub edi, ebp
mov dword [esp + 0x7c], eax
test eax, eax
jle 0x54bf12
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x54], eax
add ecx, eax
mov dword [esp + 0x28], ecx
mov edx, dword [esi + 0xe]
lea ecx, [esp + 0x50]
mov word [esp + 0x50], bx
mov word [esp + 0x52], di
push ecx
mov ecx, dword [edx + 0x1105]
call fcn.005526ac
cmp al, 1
je 0x54bef9
cmp al, 2
je 0x54bef9
mov ecx, dword [esi + 0xa]
push edi
push ebx
mov eax, dword [ecx]
call dword [eax + 0x208]
test eax, eax
jne 0x54befd
inc dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x54]
add ebx, ecx
dec eax
mov dword [esp + 0x54], eax
jne 0x54bec3
mov eax, dword [esp + 0x7c]
imul ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x58]
add ebp, edx
test eax, eax
jle 0x54bf74
mov ebx, eax
mov eax, dword [esp + 0x28]
add eax, ebx
mov dword [esp + 0x28], eax
mov edx, dword [esi + 0xe]
lea ecx, [esp + 0x5c]
mov word [esp + 0x5c], di
mov word [esp + 0x5e], bp
push ecx
mov ecx, dword [edx + 0x1105]
call fcn.005526ac
cmp al, 1
je 0x54bf67
cmp al, 2
je 0x54bf67
mov ecx, dword [esi + 0xa]
push ebp
push edi
mov eax, dword [ecx]
call dword [eax + 0x208]
test eax, eax
jne 0x54bf6b
inc dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
add edi, ecx
dec ebx
jne 0x54bf31
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x54bfa1
test byte [esi + 0x4b2], 0x3c
je 0x54bfa9
mov eax, dword [esp + 0x24]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ecx
xor ecx, ecx
mov cl, byte [esi + 0x4e4]
cmp eax, ecx
jle 0x54bfa9
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x18]
xor edx, edx
cmp eax, edx
jne 0x54c335
mov bl, byte [esp + 0x8c]
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov al, bl
imul bl
mov word [esp + 0x60], cx
mov word [esp + 0x62], bp
mov edi, dword [esp + 0x60]
mov byte [esi + 0x95], al
mov dword [esi + 0x72], edi
movsx edi, al
cmp edi, dword [esp + 0x88]
jge 0x54c2df
mov al, byte [esp + 0x15]
mov byte [esp + 0x16], dl
test al, al
mov byte [esp + 0x17], dl
mov dword [esp + 0x18], edx
je 0x54c13a
movsx edi, byte [esp + 0x14]
mov ebx, dword [esp + 0x2c]
imul edi, ebx
add edi, ecx
cmp ebx, edx
jle 0x54c07b
mov dword [esp + 0x58], ebx
mov eax, dword [esi + 0xe]
lea edx, [esp + 0x64]
mov word [esp + 0x64], di
mov word [esp + 0x66], bp
mov ecx, dword [eax + 0x1105]
push edx
call fcn.005526ac
cmp al, 1
je 0x54c057
cmp al, 2
je 0x54c057
mov ecx, dword [esi + 0xa]
push ebp
push edi
mov edx, dword [ecx]
call dword [edx + 0x6c]
test byte [eax + 0x17b], 8
jne 0x54c05f
mov dword [esp + 0x18], 1
movsx eax, byte [esp + 0x13]
add ebp, eax
mov eax, dword [esp + 0x58]
dec eax
mov dword [esp + 0x58], eax
jne 0x54c01f
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
xor edx, edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], edx
cmp eax, edx
mov dword [esp + 0x34], edx
jne 0x54c2d3
movsx eax, byte [esp + 0x14]
lea edi, [ebx + 1]
imul edi, eax
add edi, ecx
cmp ebx, edx
jle 0x54c0e8
mov dword [esp + 0x58], ebx
mov ecx, dword [esi + 0xe]
lea eax, [esp + 0x68]
mov word [esp + 0x68], di
mov word [esp + 0x6a], bp
mov ecx, dword [ecx + 0x1105]
push eax
call fcn.005526ac
cmp al, 1
je 0x54c0da
cmp al, 2
je 0x54c0da
mov ecx, dword [esi + 0xa]
push ebp
push edi
mov edx, dword [ecx]
call dword [edx + 0x208]
test eax, eax
jne 0x54c0de
inc dword [esp + 0x34]
movsx eax, byte [esp + 0x13]
add ebp, eax
dec ebx
jne 0x54c0a4
test byte [esi + 0x4b2], 0x3c
je 0x54c264
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov cl, byte [esi + 0x4e4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv dword [esp + 0x58]
cmp eax, ecx
jle 0x54c11b
mov dword [esp + 0x18], 1
mov dl, byte [esp + 0x8c]
mov al, byte [esi + 0x95]
add al, dl
mov byte [esp + 0x16], 1
mov byte [esi + 0x95], al
jmp 0x54c264
movsx edi, byte [esp + 0x13]
mov ebx, dword [esp + 0x2c]
imul edi, ebx
add edi, ebp
cmp ebx, edx
mov ebp, ecx
jle 0x54c1a4
mov dword [esp + 0x58], ebx
mov ecx, dword [esi + 0xe]
lea eax, [esp + 0x6c]
mov word [esp + 0x6c], bp
mov word [esp + 0x6e], di
mov ecx, dword [ecx + 0x1105]
push eax
call fcn.005526ac
cmp al, 1
je 0x54c18a
cmp al, 2
je 0x54c18a
mov ecx, dword [esi + 0xa]
push edi
push ebp
mov edx, dword [ecx]
call dword [edx + 0x6c]
test byte [eax + 0x17b], 8
jne 0x54c192
mov dword [esp + 0x18], 1
movsx eax, byte [esp + 0x14]
add ebp, eax
mov eax, dword [esp + 0x58]
dec eax
mov dword [esp + 0x58], eax
jne 0x54c152
mov eax, dword [esp + 0x18]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x34], edx
jne 0x54c2d3
movsx eax, byte [esp + 0x13]
lea edi, [ebx + 1]
mov ecx, dword [esp + 0x1c]
imul edi, eax
mov ebp, dword [esp + 0x20]
add edi, ecx
cmp ebx, edx
jle 0x54c21b
mov dword [esp + 0x58], ebx
mov ecx, dword [esi + 0xe]
lea eax, [esp + 0x70]
mov word [esp + 0x70], bp
mov word [esp + 0x72], di
mov ecx, dword [ecx + 0x1105]
push eax
call fcn.005526ac
cmp al, 1
je 0x54c20d
cmp al, 2
je 0x54c20d
mov ecx, dword [esi + 0xa]
push edi
push ebp
mov edx, dword [ecx]
call dword [edx + 0x208]
test eax, eax
jne 0x54c211
inc dword [esp + 0x34]
movsx eax, byte [esp + 0x14]
add ebp, eax
dec ebx
jne 0x54c1d7
test byte [esi + 0x4b2], 0x3c
je 0x54c264
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov cl, byte [esi + 0x4e4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv dword [esp + 0x58]
cmp eax, ecx
jle 0x54c24a
mov dword [esp + 0x18], 1
mov dl, byte [esp + 0x8c]
mov al, byte [esi + 0x95]
add al, dl
mov byte [esp + 0x17], 1
mov byte [esi + 0x95], al
mov eax, dword [esp + 0x18]
xor edx, edx
cmp eax, edx
jne 0x54c2d3
mov al, byte [esi + 0x95]
mov word [esp + 0x74], dx
mov word [esp + 0x76], dx
mov ecx, dword [esp + 0x74]
mov byte [esi + 0x94], al
mov al, byte [esp + 0x14]
mov dword [esi + 0x76], ecx
mov cl, byte [esp + 0x13]
mov byte [esi + 0x8f], al
mov al, byte [esp + 0x16]
mov byte [esi + 0x90], cl
mov cl, byte [esp + 0x8c]
add al, cl
mov dword [esp + 0x30], 1
mov byte [esi + 0x92], al
mov al, byte [esp + 0x17]
add al, cl
mov byte [esi + 0x95], dl
mov byte [esi + 0x93], al
mov byte [esi + 0x91], 1
cmp dword [esp + 0x30], edx
je 0x54ba8b
jmp 0x54c335
mov cl, byte [esp + 0x13]
mov byte [esi + 0x94], al
mov al, byte [esp + 0x14]
mov word [esp + 0x8c], dx
mov word [esp + 0x8e], dx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x30], 1
mov byte [esi + 0x95], 0
mov dword [esi + 0x76], edx
mov byte [esi + 0x8f], al
mov byte [esi + 0x90], cl
mov byte [esi + 0x92], bl
mov byte [esi + 0x93], bl
mov byte [esi + 0x91], 1
mov eax, dword [esp + 0x30]
test eax, eax
je 0x54c3aa
movsx ecx, byte [esi + 0x8f]
movsx edx, byte [esi + 0x92]
movsx edi, byte [esi + 0x90]
imul ecx, edx
movsx ebx, byte [esi + 0x93]
imul edi, ebx
mov ebx, dword [esi + 0x12]
xor eax, eax
mov ax, word [esi + 0x72]
xor edx, edx
mov dx, word [esi + 0x74]
add ecx, eax
add edi, edx
cmp eax, ebx
jl 0x54c3aa
mov ebp, dword [esi + 0x1a]
cmp eax, ebp
jg 0x54c3aa
mov eax, dword [esi + 0x1e]
cmp edx, eax
jg 0x54c3aa
mov esi, dword [esi + 0x16]
cmp edx, esi
jl 0x54c3aa
cmp ecx, ebx
jl 0x54c3aa
cmp ecx, ebp
jg 0x54c3aa
cmp edi, eax
jg 0x54c3aa
cmp edi, esi
jl 0x54c3aa
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x70
ret 0xc