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

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x7c]
push esi
push edi
mov edx, dword [eax]
mov eax, dword [ecx]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], 0
mov esi, dword [eax + 0xc]
mov edi, dword [edi]
mov dword [esp + 0x2c], 1
mov dword [esp + 0x1c], edi
test esi, esi
je 0x554115
push dword [eax + 0x10]
movzx eax, word [ecx + 0x5c]
mov ecx, esi
push eax
call dword [0x5c53f0]
call esi
add esp, 8
test eax, eax
je 0x554111
mov eax, dword [esp + 0x68]
pop edi
pop esi
mov dword [eax], 0x85
xor eax, eax
add esp, 0x50
ret
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x80]
xor ecx, ecx
push ebx
push ebp
mov ebp, dword [esp + 0x74]
or esi, 0xffffffff
mov dword [esp + 0x58], eax
or ebx, 0xffffffff
mov dword [esp + 0x5c], edx
mov dword [esp + 0x18], 0
lea eax, [ebp + 4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], eax
mov eax, 0x80
movzx edx, word [edx]
mov dword [esp + 0x28], esi
cmp dx, ax
je 0x554170
mov eax, 0x81
cmp dx, ax
je 0x554170
mov eax, 0x83
cmp dx, ax
je 0x554170
mov dword [esp + 0x38], ecx
jmp 0x554183
movzx ecx, word [edi - 4]
lea eax, [edi + 4]
mov dword [esp + 0x38], 1
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x2c]
mov eax, 0x88
cmp dx, ax
mov edx, dword [esp + 0x8c]
jne 0x5541bc
movzx eax, word [edi + 4]
mov dword [esp + 0x44], eax
mov word [esp + 0x54], ax
mov eax, dword [edx + 0x60]
mov dword [esp + 0x50], eax
mov ax, word [edx + 0x5e]
mov word [esp + 0x56], ax
lea eax, [esp + 0x50]
mov dword [edx + 0x60], eax
xor eax, eax
mov dword [esp + 0x40], 0
mov word [edi + 2], ax
lea esi, [esp + 0x10]
lea eax, [ebp*2 + 4]
mov ebp, edi
mov dword [esp + 0x4c], eax
add eax, edi
mov edi, dword [esp + 0x90]
test edi, edi
cmove esi, dword [esp + 0x40]
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x28]
cmp dword [esp + 0x38], 0
mov dword [esp + 0x14], eax
je 0x554221
test ecx, ecx
je 0x554221
mov edi, 0x7d
mov word [eax], di
mov edi, dword [esp + 0x90]
mov word [eax + 2], cx
add eax, 4
add dword [esp + 0x10], 2
mov dword [esp + 0x14], eax
push dword [esp + 0x48]
lea eax, [esp + 0x5c]
push edx
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x8c]
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.00550ac0
add esp, 0x2c
test eax, eax
je 0x55443f
mov ecx, dword [esp + 0x34]
mov eax, 0xffffffff
cmovs ecx, eax
mov dword [esp + 0x34], ecx
test edi, edi
jne 0x55431e
cmp word [ebp], 0x78
je 0x5542ac
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x90]
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], esi
jmp 0x55431e
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
cmp esi, eax
jne 0x5542e6
cmp ecx, edx
jne 0x5542e6
cmp esi, 0xfffffffe
jae 0x5542ff
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, ecx
xor eax, ebx
test eax, 0xfffffffd
jne 0x554319
cmp dword [esp + 0x18], edx
jne 0x554319
mov dword [esp + 0x18], edx
or ebx, ecx
jmp 0x55431e
cmp esi, 0xfffffffe
jae 0x5542f6
cmp ebx, 0xfffffffe
jb 0x5542f6
mov dword [esp + 0x18], ecx
mov ebx, esi
mov esi, 0xfffffffe
mov dword [esp + 0x28], esi
cmp eax, 0xfffffffe
jae 0x5542c5
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xfffffffe
jb 0x5542c9
mov ecx, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
jmp 0x5542cd
mov ebx, 0xfffffffe
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
and eax, 0xffff0000
cmp eax, 0x80010000
jne 0x55438e
test edi, edi
je 0x554359
mov eax, dword [esp + 0x68]
add dword [esp + 0x10], 2
movzx ecx, word [edx]
mov eax, dword [eax]
add eax, dword [esp + 0x4c]
add edx, 4
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x8c]
jmp 0x5541f3
mov ecx, dword [esp + 0x14]
mov eax, 0x78
mov word [ecx], ax
mov eax, ecx
sub eax, ebp
mov ebp, ecx
sar eax, 1
mov word [ecx + 2], ax
mov dword [esp + 0x5c], ecx
movzx ecx, word [edx]
lea eax, [ebp + 4]
add edx, 4
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x8c]
jmp 0x5541f3
test edi, edi
mov edi, dword [esp + 0x14]
jne 0x5543ba
mov esi, edi
sub esi, ebp
sar esi, 1
nop dword [eax]
movzx ecx, word [ebp + 2]
mov eax, ecx
mov word [ebp + 2], si
neg eax
mov esi, ecx
lea ebp, [ebp + eax*2]
test ecx, ecx
jne 0x5543a0
mov esi, dword [esp + 0x28]
mov eax, 0x79
mov word [edi], ax
mov eax, edi
sub eax, dword [esp + 0x2c]
sar eax, 1
mov word [edi + 2], ax
add edi, 4
cmp dword [esp + 0x44], 0
jbe 0x5543e7
mov ecx, dword [esp + 0x8c]
mov eax, dword [ecx + 0x60]
mov eax, dword [eax]
mov dword [ecx + 0x60], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x30]
mov dword [eax], edi
mov eax, dword [esp + 0x6c]
mov dword [eax], edx
mov eax, dword [esp + 0x78]
mov dword [eax], ecx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x18]
mov dword [eax], esi
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x90]
mov dword [eax], ecx
mov eax, dword [esp + 0x84]
mov dword [eax], ebx
test esi, esi
je 0x55444d
mov ecx, dword [esi]
mov eax, 0x7fffffeb
mov edx, dword [esp + 0x10]
sub eax, ecx
cmp eax, edx
jae 0x554449
mov eax, dword [esp + 0x70]
mov dword [eax], 0x78
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x50
ret
add ecx, edx
mov dword [esi], ecx
mov eax, dword [esp + 0x34]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x50
ret