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

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov cl, byte [esi + 0x8c]
mov eax, dword [esi + 0x48]
push edi
xor edi, edi
or cl, 4
cmp eax, edi
mov dword [esp + 8], edi
mov byte [esi + 0x8c], cl
je 0x58e7f3
mov dword [0x675fb0], edi
mov eax, dword [esi + 0x48]
mov dword [eax + 0x14], 0xffffffff
cmp dword [esi + 0x3c], edi
push ebx
jne 0x58e9bd
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx + 0x50]
cmp eax, edi
jle 0x58e984
mov ecx, dword [esi + 0x2c]
push esi
push eax
call fcn.004ed250
cmp eax, edi
mov dword [esi + 0x3c], eax
jne 0x58e8b3
test byte [esi + 9], 8
je 0x58e832
push str.Incorrect_STORAGE_
mov ecx, esi
call fcn.004ecf00
push edi
lea ecx, [esp + 0x14]
call fcn.004f60c0
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 0x50]
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
push esi
push eax
lea eax, [esp + 0x18]
push eax
call dword [edx + 0x5c]
test eax, eax
jne 0x58e8a5
mov eax, dword [esi + 0x80]
mov ebx, 1
cmp eax, ebx
je 0x58e88d
push ebx
push 0x24
mov ecx, 0x675bf0
call fcn.004e1e00
cmp eax, edi
je 0x58e888
mov ecx, dword [esi + 0x80]
push esi
push ecx
push 0xffffffffffffffff
mov ecx, eax
call fcn.004fd960
jmp 0x58e88a
xor eax, eax
mov dword [esi + 0x3c], eax
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0055ea90
mov ecx, esi
push eax
call fcn.004eb230
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x10]
call fcn.004f6160
jmp 0x58e9bd
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x80]
shl eax, 0x15
sar eax, 0x1b
cmp ecx, eax
je 0x58e8d2
push str.Incorrect_TYPE_for_Field__nConflicts_with_STORAGE_
mov ecx, esi
call fcn.004ecf00
mov ecx, dword [esi + 0x3c]
test byte [ecx + 9], 1
je 0x58e8f2
mov ecx, esi
call fcn.0055e970
mov ecx, esi
push eax
call fcn.004eb230
mov dword [esp + 0xc], 1
test byte [esi + 9], 8
je 0x58e9bd
mov eax, dword [esi + 0x80]
cmp eax, 5
je 0x58e910
cmp eax, 6
jne 0x58e9bd
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x78]
cmp eax, 0x13
je 0x58e92e
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x78]
cmp eax, 0x1b
jne 0x58e9bd
mov ecx, dword [esi + 0x2c]
push 0x808
call fcn.004ebeb0
push 1
push 0x800
push esi
mov ecx, eax
call fcn.004eb090
mov ecx, dword [esi + 0x2c]
push 0x809
call fcn.004ebeb0
push 1
push 0x800
push esi
mov ecx, eax
call fcn.004eb090
mov ecx, dword [esi + 0x2c]
push 0x80a
call fcn.004ebeb0
push 1
push 0x800
push esi
mov ecx, eax
call fcn.004eb090
jmp 0x58e9bd
test byte [esi + 9], 8
jne 0x58e993
cmp dword [esi + 0x80], 1
je 0x58e9bd
push 1
push 0x24
mov ecx, 0x675bf0
call fcn.004e1e00
cmp eax, edi
je 0x58e9b8
mov ecx, dword [esi + 0x80]
push esi
push ecx
push 0xffffffffffffffff
mov ecx, eax
call fcn.004fd960
jmp 0x58e9ba
xor eax, eax
mov dword [esi + 0x3c], eax
test byte [esi + 0x8a], 1
je 0x58e9cd
mov ecx, esi
call fcn.00550bf0
mov eax, dword [esi + 0x28]
cmp dword [eax + 0x7c], 2
je 0x58ec39
cmp word [eax + 0x30], di
jne 0x58e9ea
cmp word [eax + 0x3c], di
je 0x58ebab
push ebp
call fcn.005109a0
mov ebx, eax
mov eax, dword [esi + 0x80]
cmp eax, 9
mov ebp, 1
je 0x58ea04
mov ebp, eax
push 0
lea ecx, [esp + 0x18]
mov edi, 1
call fcn.004f60c0
test byte [esi + 9], 8
mov edx, dword [0x760eec]
mov dword [esi + 0x78], edx
jne 0x58ea2f
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x58eb98
mov eax, dword [esi + 0x28]
movzx eax, word [eax + 0x30]
test ax, ax
je 0x58ea5f
push 4
push esi
push 0
push esi
push ebp
push eax
mov ecx, ebx
call fcn.00512700
mov edi, eax
test edi, edi
jne 0x58ea91
lea ecx, [ebx + 0x38]
push ecx
lea ecx, [esp + 0x18]
call fcn.004f6180
jmp 0x58ea91
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2c]
mov ecx, dword [esi + 0x28]
movzx ecx, word [ecx + 0x3c]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x20]
mov ebp, eax
test ebp, ebp
je 0x58ea91
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.004f19b0
xor edi, edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x58eac6
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx + 0x34]
mov eax, dword [esi]
mov ebp, dword [edx + 0x30]
mov ecx, esi
call dword [eax + 0x2c]
test byte [eax + 0xbc], 2
je 0x58eac6
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 8]
cmp dword [edx + 0x50], 2
jne 0x58eac6
mov dword [esp + 0x10], 0
test edi, edi
jne 0x58eb98
test byte [esi + 0x8a], 1
je 0x58eb98
mov al, byte [esi + 9]
shr al, 3
and al, 1
je 0x58eb38
cmp dword [esi + 0x84], 0xd
jne 0x58eb38
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx + 0x80]
test edx, edx
je 0x58eb38
mov edx, dword [ecx + 0x50]
test edx, edx
je 0x58eb38
cmp dword [esi + 0x80], 0xa
jne 0x58eb84
mov eax, dword [esi + 0x3c]
test byte [eax + 9], 1
je 0x58eb31
mov ebp, dword [eax + 0x1c]
mov eax, dword [esp + 0x14]
mov edi, dword [eax]
xor ecx, ecx
cmp ebp, 2
sete cl
xor edx, edx
cmp edi, 2
sete dl
cmp edx, ecx
je 0x58eb98
lea ecx, [esp + 0x14]
push ecx
jmp 0x58eb89
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x58eb84
mov ecx, dword [esi + 0x38]
cmp byte [ecx], 0
je 0x58eb84
test al, al
je 0x58eb98
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2c]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x58]
cmp eax, 0xfffffffc
jne 0x58eb98
test byte [esi + 0x8c], 2
jne 0x58eb7d
mov eax, dword [esi + 0x28]
cmp dword [eax + 0x80], 2
jne 0x58eb98
test byte [esi + 0x8a], 0x20
je 0x58eb98
lea ecx, [esp + 0x14]
push ecx
jmp 0x58eb89
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.0055ea90
mov ecx, esi
push eax
call fcn.004eb230
lea ecx, [esp + 0x14]
call fcn.004f6160
mov ecx, ebx
call fcn.00510990
xor edi, edi
pop ebp
mov ecx, esi
call fcn.00550af0
mov ecx, esi
call fcn.00550b50
test byte [esi + 9], 8
je 0x58ebf7
cmp dword [0x675fb0], edi
je 0x58ebe3
cmp dword [esi + 0x48], edi
jne 0x58ebd3
mov ecx, esi
call fcn.00513e30
mov eax, dword [esi + 0x48]
mov dword [eax + 0x50], 1
mov dword [0x675fb0], edi
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx + 0x6c]
cmp edx, 1
jle 0x58ebf7
mov ecx, dword [esi + 0x38]
push edi
call fcn.004ea0e0
cmp dword [esi + 0x48], edi
je 0x58ec39
mov dl, byte [esi + 0x8c]
and dl, 2
cmp dl, 4
je 0x58ec39
mov eax, dword [esi + 0x80]
cmp eax, 5
je 0x58ec1a
cmp eax, 6
jne 0x58ec39
test byte [esi + 0x8a], 1
je 0x58ec2b
push edi
mov ecx, esi
call fcn.0055e8b0
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x38]
add ecx, 0x24
call fcn.004ea050
mov eax, dword [esi + 0x48]
cmp eax, edi
pop ebx
je 0x58ec44
mov dword [eax + 0x14], edi
mov al, byte [esi + 0x8c]
and al, 0xfb
pop edi
mov byte [esi + 0x8c], al
pop esi
add esp, 0x10
ret