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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x164]
push edi
mov dword [ebp - 0x1c], eax
cmp ebx, dword [esi + 0x90]
jne 0x54dcb4
lea ecx, [esi + 0x120]
lea edx, [esi + 0x124]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
jmp 0x54dcc3
mov eax, dword [esi + 0x12c]
mov dword [ebp - 8], eax
add eax, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x54dcd0
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
lea edx, [ebp - 4]
push edx
push edi
push eax
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
push ebx
call eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
add eax, 5
add esp, 0x10
mov dword [edx], ecx
cmp eax, 0x12
ja case.default.0x54dcfc
jmp dword [eax*4 + 0x54e7c8]
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x30]
sub ecx, eax
add eax, dword [ebp + 0x14]
push ecx
push eax
push ebx
call edx
movzx eax, ax
add esp, 0xc
mov dword [ebp - 0x20], eax
test ax, ax
je 0x54dd57
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x54dd3c
mov edx, dword [esi + 4]
push 1
lea ecx, [ebp - 0x20]
push ecx
push edx
call eax
add esp, 0xc
jmp 0x54ddc9
cmp dword [esi + 0x50], 0
je 0x54ddc9
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.0054a6a0
add esp, 4
jmp 0x54ddc9
mov ebx, dword [ebx + 0x44]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp - 4]
lea eax, [ebx + ecx]
mov ecx, dword [ebp - 0x1c]
sub edi, ebx
mov ebx, dword [ebp + 0x10]
add ecx, 0x50
call fcn.0054bc40
mov dword [ebp + 8], eax
test eax, eax
je 0x54e6d7
mov edi, dword [ebp - 0x1c]
push 0
mov edx, eax
push edx
push esi
call fcn.0054a8d0
mov ebx, eax
mov eax, dword [edi + 0x60]
add esp, 0xc
cmp byte [edi + 0x81], 0
mov dword [edi + 0x5c], eax
je 0x54ddf6
cmp byte [edi + 0x82], 0
jne 0x54ddf6
test ebx, ebx
jne 0x54de08
mov eax, dword [esi + 0x78]
test eax, eax
je 0x54de38
mov ecx, dword [ebp + 8]
push ebx
mov edx, dword [esi + 4]
push ecx
push edx
call eax
add esp, 0xc
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ebp + 0x14], ecx
mov dword [edx], ecx
mov eax, dword [esi + 0x1e0]
sub eax, 2
je 0x54e7bc
dec eax
jne 0x54dcd0
mov edx, dword [ebp + 0x1c]
pop edi
pop esi
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x54e692
cmp byte [ebx + 0x22], 0
je 0x54e69e
cmp byte [ebx + 0x20], 0
jne 0x54e6aa
cmp dword [ebx + 0x1c], 0
jne 0x54e6b6
cmp dword [ebx + 4], 0
je 0x54de6c
cmp byte [esi + 0x134], 0
jne 0x54de55
mov eax, dword [esi + 0x78]
test eax, eax
je 0x54de38
mov ecx, dword [ebx]
push 0
jmp 0x54ddbc
cmp dword [esi + 0x50], 0
je 0x54ddc6
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.0054a6a0
add esp, 4
jmp 0x54ddc9
push 0
call fcn.0054a510
add esp, 4
test eax, eax
jne 0x54e7c1
jmp 0x54ddc6
cmp dword [esi + 0x70], 0
je 0x54debb
mov edi, esi
mov byte [ebx + 0x20], 1
call fcn.0054b690
mov byte [ebx + 0x20], 0
test eax, eax
je 0x54e6d7
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x10]
push ecx
mov ecx, dword [ebx + 0x14]
push edx
mov edx, dword [esi + 0x74]
push ecx
push eax
mov eax, dword [esi + 0x70]
push edx
call eax
add esp, 0x14
test eax, eax
je 0x54e6c2
mov ecx, dword [esi + 0x1b0]
mov dword [esi + 0x1ac], ecx
jmp 0x54ddc6
cmp dword [esi + 0x50], 0
je 0x54ddc6
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
push edx
call fcn.0054a6a0
add esp, 4
jmp 0x54ddc9
mov edi, dword [esi + 0x170]
test edi, edi
je 0x54def0
mov eax, dword [edi]
mov dword [esi + 0x170], eax
jmp 0x54df1f
mov ecx, dword [esi + 0xc]
push 0x30
call ecx
mov edi, eax
add esp, 4
test edi, edi
je 0x54e6d7
mov edx, dword [esi + 0xc]
push 0x20
call edx
add esp, 4
mov dword [edi + 0x24], eax
test eax, eax
je 0x54e6ce
add eax, 0x20
mov dword [edi + 0x28], eax
xor ecx, ecx
mov dword [edi + 0x2c], ecx
lea eax, [edi + 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x16c]
mov dword [edi], eax
mov dword [esi + 0x16c], edi
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov eax, dword [ebx + 0x44]
add eax, dword [ebp + 0x14]
push eax
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x20]
push ebx
call eax
mov dword [edi + 8], eax
inc dword [esi + 0x138]
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x24]
add ecx, eax
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], edx
mov eax, dword [edi + 0x28]
sub eax, 2
push eax
lea edx, [ebp - 0xc]
push edx
push ecx
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0x40]
push ebx
call ecx
mov eax, dword [ebp - 0xc]
sub eax, dword [edi + 0x24]
mov edx, dword [ebp - 0x14]
sar eax, 1
add esp, 0x1c
mov dword [ebp - 0x18], eax
cmp dword [ebp + 8], edx
je 0x54dffa
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x28]
sub eax, ecx
add eax, eax
push eax
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x10]
push ecx
call eax
add esp, 8
test eax, eax
je 0x54e6d7
mov ecx, dword [ebp - 0x24]
lea edx, [eax + ecx]
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0x28], edx
lea edx, [eax + ecx*2]
mov dword [edi + 0x24], eax
mov dword [ebp - 0xc], edx
mov eax, dword [edi + 0x28]
mov edx, dword [ebp - 0x14]
sub eax, 2
push eax
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebx + 0x40]
push edx
lea eax, [ebp + 8]
push eax
push ebx
call ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [edi + 0x24]
mov eax, dword [ebp - 0x14]
sar edx, 1
add esp, 0x14
mov dword [ebp - 0x18], edx
cmp dword [ebp + 8], eax
jne 0x54df97
mov edx, dword [edi + 0x24]
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0x18], ecx
lea eax, [edi + 0xc]
mov dword [eax], edx
mov edx, dword [ebp - 0xc]
xor ecx, ecx
mov word [edx], cx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 0x14]
push ecx
push eax
push edx
push ebx
push esi
mov dword [ebp + 8], eax
call fcn.0054d3c0
add esp, 0x14
test eax, eax
jne 0x54e7c1
mov eax, dword [esi + 0x34]
test eax, eax
je 0x54e05b
mov ecx, dword [esi + 0x188]
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [edx]
mov edx, dword [esi + 4]
push ecx
push edx
call eax
add esp, 0xc
lea ecx, [esi + 0x1a0]
call fcn.0054ac10
jmp 0x54ddc9
cmp dword [esi + 0x50], 0
je 0x54e070
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.0054a6a0
add esp, 4
lea ecx, [esi + 0x1a0]
call fcn.0054ac10
jmp 0x54ddc9
mov eax, dword [ebx + 0x44]
add eax, dword [ebp + 0x14]
mov edx, dword [ebx + 0x20]
push eax
lea ecx, [esi + 0x1a0]
push ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov byte [ebp + 0xb], 1
mov dword [ebp - 0x18], ecx
call edx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
mov edi, eax
mov eax, dword [ebp - 0x28]
add esp, 8
add edi, eax
call fcn.0054bc40
mov dword [ebp - 0x44], eax
test eax, eax
je 0x54e6d7
mov eax, dword [esi + 0x1ac]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x44]
push edx
mov dword [esi + 0x1b0], eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
push esi
call fcn.0054d3c0
add esp, 0x14
test eax, eax
jne 0x54e7c1
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x1ac]
mov edi, dword [ebp - 0x44]
mov dword [esi + 0x1b0], ecx
test eax, eax
je 0x54e119
mov edx, dword [esi + 0x188]
mov ecx, dword [esi + 4]
push edx
push edi
push ecx
call eax
add esp, 0xc
xor al, al
jmp 0x54e11c
mov al, byte [ebp + 0xb]
cmp dword [esi + 0x38], 0
je 0x54e141
cmp dword [esi + 0x34], 0
je 0x54e132
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x38]
push edi
push edx
call eax
add esp, 8
jmp 0x54e15a
test al, al
je 0x54e15a
cmp dword [esi + 0x50], 0
je 0x54e15a
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
push ecx
call fcn.0054a6a0
add esp, 4
mov ecx, dword [ebp - 0x18]
call fcn.0054ac10
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x54e1a6
lea esp, [esp]
mov eax, dword [esi + 0x68]
mov ebx, edi
test eax, eax
je 0x54e187
mov edx, dword [edi]
mov ecx, dword [edx]
mov edx, dword [esi + 4]
push ecx
push edx
call eax
add esp, 8
mov ecx, dword [esi + 0x178]
lea eax, [edi + 4]
mov edi, dword [eax]
mov dword [eax], ecx
mov dword [esi + 0x178], ebx
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
mov dword [edx + 4], eax
test edi, edi
jne 0x54e170
cmp dword [esi + 0x138], 0
jne 0x54ddc6
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
push eax
push ecx
push edx
push esi
call fcn.0054d020
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
cmp dword [esi + 0x138], ecx
je 0x54e7b0
mov edi, dword [esi + 0x16c]
mov edx, dword [edi]
mov eax, dword [esi + 0x170]
mov dword [esi + 0x16c], edx
mov dword [edi], eax
mov edx, dword [ebp + 0x14]
mov dword [esi + 0x170], edi
mov ecx, dword [ebx + 0x44]
lea eax, [edx + ecx*2]
push eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x20]
push ebx
call eax
add esp, 8
cmp eax, dword [edi + 8]
jne 0x54e6e3
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
cmp eax, 4
jb 0x54e251
lea ecx, [ecx]
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x54e6e3
mov ecx, dword [ebp - 0x18]
sub eax, 4
add edx, 4
add ecx, 4
mov dword [ebp + 8], edx
mov dword [ebp - 0x18], ecx
cmp eax, 4
jae 0x54e230
test eax, eax
je 0x54e287
mov dl, byte [edx]
cmp dl, byte [ecx]
jne 0x54e6e3
cmp eax, 1
jbe 0x54e287
mov edx, dword [ebp + 8]
mov dl, byte [edx + 1]
cmp dl, byte [ecx + 1]
jne 0x54e6e3
cmp eax, 2
jbe 0x54e287
mov eax, dword [ebp + 8]
mov dl, byte [eax + 2]
cmp dl, byte [ecx + 2]
jne 0x54e6e3
dec dword [esi + 0x138]
cmp dword [esi + 0x38], 0
je 0x54e31e
cmp byte [esi + 0xec], 0
mov edx, dword [edi + 0x10]
je 0x54e30c
test edx, edx
je 0x54e30c
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x1c]
lea eax, [ecx + eax*2]
movzx ecx, word [edx]
test cx, cx
je 0x54e2d1
jmp 0x54e2c0
add edx, 2
mov word [eax], cx
movzx ecx, word [edx]
add eax, 2
test cx, cx
jne 0x54e2c0
cmp byte [esi + 0xed], 0
mov edx, dword [edi + 0x14]
je 0x54e307
test edx, edx
je 0x54e307
mov cx, word [esi + 0x1d8]
mov word [eax], cx
movzx ecx, word [edx]
add eax, 2
test cx, cx
je 0x54e307
add edx, 2
mov word [eax], cx
movzx ecx, word [edx]
add eax, 2
test cx, cx
jne 0x54e2f6
xor edx, edx
mov word [eax], dx
mov eax, dword [edi + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x38]
push eax
push ecx
call edx
add esp, 8
jmp 0x54e333
cmp dword [esi + 0x50], 0
je 0x54e333
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.0054a6a0
add esp, 4
cmp dword [edi + 0x2c], 0
je 0x54e386
lea esp, [esp]
mov ecx, dword [esi + 0x68]
mov eax, dword [edi + 0x2c]
mov dword [ebp + 8], eax
test ecx, ecx
je 0x54e360
mov edx, eax
mov eax, dword [edx]
mov edx, dword [eax]
mov eax, dword [esi + 4]
push edx
push eax
call ecx
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, dword [edi + 0x2c]
mov edx, dword [ecx + 4]
mov dword [edi + 0x2c], edx
mov ecx, dword [esi + 0x178]
mov dword [eax + 4], ecx
mov dword [esi + 0x178], eax
mov edx, dword [eax]
mov eax, dword [eax + 8]
mov dword [edx + 4], eax
cmp dword [edi + 0x2c], 0
jne 0x54e340
cmp dword [esi + 0x138], 0
je 0x54e1b3
jmp 0x54ddc9
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebx + 0x2c]
push ecx
push ebx
call edx
add esp, 8
test eax, eax
js 0x54e6f7
cmp dword [esi + 0x3c], 0
je 0x54e3d3
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.0055a5e0
mov ecx, dword [esi + 0x3c]
push eax
mov eax, dword [esi + 4]
lea edx, [ebp - 0x2c]
push edx
push eax
call ecx
add esp, 0x14
jmp 0x54ddc9
cmp dword [esi + 0x50], 0
je 0x54ddc9
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
push edx
call fcn.0054a6a0
add esp, 4
jmp 0x54ddc9
mov eax, dword [esi + 0x3c]
test eax, eax
je case.default.0x54dcfc
mov edx, dword [esi + 4]
push 1
lea ecx, [ebp + 8]
push ecx
push edx
mov dword [ebp + 8], 0xa
call eax
add esp, 0xc
jmp 0x54ddc9
mov eax, dword [esi + 0x48]
test eax, eax
je 0x54e426
mov ecx, dword [esi + 4]
push ecx
call eax
jmp 0x54e437
cmp dword [esi + 0x50], 0
je 0x54e43a
mov edx, dword [ebp + 0x14]
push edx
mov eax, ecx
call fcn.0054a6a0
add esp, 4
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push eax
push ecx
lea edx, [ebp - 4]
push edi
push edx
mov eax, ebx
mov ecx, esi
call fcn.0054b0b0
add esp, 0x10
test eax, eax
jne 0x54e7c1
cmp dword [ebp - 4], eax
jne 0x54ddc9
pop edi
mov dword [esi + 0x118], 0x54be50
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0x3c]
test edi, edi
je 0x54e52f
cmp byte [ebx + 0x49], 0
je 0x54e4a1
mov eax, dword [ebp + 0x14]
test al, 1
jne 0x54e4a1
sub ecx, eax
sar ecx, 1
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call edi
add esp, 0xc
jmp 0x54ddc9
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
push eax
mov dword [ebp + 8], edx
lea edx, [ebp + 8]
push edx
push ecx
mov ecx, dword [ebx + 0x40]
lea eax, [ebp + 0x14]
push eax
push ebx
call ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 4]
sub ecx, eax
sar ecx, 1
push ecx
push eax
push edx
call edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
add esp, 0x20
cmp eax, ecx
je 0x54ddc9
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
push edx
mov edx, dword [ebx + 0x40]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push ecx
lea ecx, [ebp + 0x14]
push ecx
push ebx
call edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [esi + 0x2c]
sub edx, eax
sar edx, 1
push edx
push eax
mov eax, dword [esi + 4]
push eax
call edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
add esp, 0x20
cmp eax, ecx
jne 0x54e4e5
jmp 0x54ddc9
cmp dword [esi + 0x50], 0
je 0x54ddc9
mov edx, dword [ebp + 0x14]
push edx
mov eax, ecx
call fcn.0054a6a0
add esp, 4
jmp 0x54ddc9
mov eax, dword [ebp + 0x14]
push ecx
push eax
mov ecx, ebx
mov edx, esi
call fcn.0054c900
add esp, 8
test eax, eax
je 0x54e6d7
jmp 0x54ddc9
mov edx, dword [ebp + 0x14]
push edx
mov eax, ecx
mov ecx, ebx
mov edx, esi
call fcn.0054c9d0
add esp, 4
test eax, eax
je 0x54e6d7
jmp 0x54ddc9
cmp dword [esi + 0x50], 0
je 0x54ddc9
mov eax, dword [ebp + 0x14]
push eax
mov eax, ecx
call fcn.0054a6a0
add esp, 4
jmp 0x54ddc9
cmp byte [ebp + 0x20], 0
je 0x54e5bd
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
mov dword [edx], edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x54e5e1
mov edx, dword [esi + 4]
push 1
lea ecx, [ebp + 0x10]
push ecx
push edx
mov dword [ebp + 0x10], 0xa
call eax
add esp, 0xc
jmp 0x54e5f5
cmp dword [esi + 0x50], 0
je 0x54e5f5
mov eax, dword [ebp + 0x14]
push eax
mov eax, edi
call fcn.0054a6a0
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x54e793
cmp dword [esi + 0x138], eax
jne 0x54e7b0
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x20], 0
je 0x54e631
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], edx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x54e793
cmp dword [esi + 0x138], eax
jne 0x54e7b0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x1c]
pop edi
pop esi
mov dword [edx], ecx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
mov dword [eax], ecx
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x20], 0
jne 0x54e648
pop edi
pop esi
mov eax, 5
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x20], 0
jne 0x54e5ac
pop edi
pop esi
mov eax, 6
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xb
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x18
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xf
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x15
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x14]
push edi
call edx
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xe
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x11
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x20], 0
jne 0x54e620
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x54e773
cmp byte [ebx + 0x49], 0
je 0x54e740
mov eax, dword [ebp + 0x14]
test al, 1
jne 0x54e740
mov edx, edi
sub edx, eax
sar edx, 1
push edx
push eax
mov eax, dword [esi + 4]
push eax
call ecx
add esp, 0xc
jmp 0x54e787
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [ebx + 0x40]
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], ecx
push edi
lea ecx, [ebp + 0x14]
push ecx
push ebx
call edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 4]
sub ecx, eax
sar ecx, 1
push ecx
push eax
mov eax, dword [esi + 0x3c]
push edx
call eax
add esp, 0x20
jmp 0x54e787
cmp dword [esi + 0x50], 0
je 0x54e787
mov ecx, dword [ebp + 0x14]
push ecx
mov eax, edi
call fcn.0054a6a0
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x54e79f
mov edx, dword [ebp - 8]
mov dword [edx], edi
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x138], eax
je 0x54e60c
mov eax, dword [ebp - 8]
mov dword [eax], edi
pop edi
pop esi
mov eax, 0xd
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret