Function at 0x58e780
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 0x58e7b3
mov dword [0x63b8b0], edi
mov eax, dword [esi + 0x48]
mov dword [eax + 0x14], 0xffffffff
cmp dword [esi + 0x3c], edi
push ebx
jne 0x58e97d
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx + 0x50]
cmp eax, edi
jle 0x58e944
mov ecx, dword [esi + 0x2c]
push esi
push eax
call fcn.004ed200
cmp eax, edi
mov dword [esi + 0x3c], eax
jne 0x58e873
test byte [esi + 9], 8
je 0x58e7f2
push str.Incorrect_STORAGE_
mov ecx, esi
call fcn.004eced0
push edi
lea ecx, [esp + 0x14]
call fcn.004f5dd0
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 0x58e865
mov eax, dword [esi + 0x80]
mov ebx, 1
cmp eax, ebx
je 0x58e84d
push ebx
push 0x24
mov ecx, 0x63b4f0
call fcn.004e1dd0
cmp eax, edi
je 0x58e848
mov ecx, dword [esi + 0x80]
push esi
push ecx
push 0xffffffffffffffff
mov ecx, eax
call fcn.004fd8b0
jmp 0x58e84a
xor eax, eax
mov dword [esi + 0x3c], eax
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0055ea00
mov ecx, esi
push eax
call fcn.004eb1f0
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x10]
call fcn.004f5e70
jmp 0x58e97d
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x80]
shl eax, 0x15
sar eax, 0x1b
cmp ecx, eax
je 0x58e892
push str.Incorrect_TYPE_for_Field__nConflicts_with_STORAGE_
mov ecx, esi
call fcn.004eced0
mov ecx, dword [esi + 0x3c]
test byte [ecx + 9], 1
je 0x58e8b2
mov ecx, esi
call fcn.0055e8e0
mov ecx, esi
push eax
call fcn.004eb1f0
mov dword [esp + 0xc], 1
test byte [esi + 9], 8
je 0x58e97d
mov eax, dword [esi + 0x80]
cmp eax, 5
je 0x58e8d0
cmp eax, 6
jne 0x58e97d
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x78]
cmp eax, 0x13
je 0x58e8ee
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x78]
cmp eax, 0x1b
jne 0x58e97d
mov ecx, dword [esi + 0x2c]
push 0x808
call fcn.004ebe80
push 1
push 0x800
push esi
mov ecx, eax
call fcn.004eb050
mov ecx, dword [esi + 0x2c]
push 0x809
call fcn.004ebe80
push 1
push 0x800
push esi
mov ecx, eax
call fcn.004eb050
mov ecx, dword [esi + 0x2c]
push 0x80a
call fcn.004ebe80
push 1
push 0x800
push esi
mov ecx, eax
call fcn.004eb050
jmp 0x58e97d
test byte [esi + 9], 8
jne 0x58e953
cmp dword [esi + 0x80], 1
je 0x58e97d
push 1
push 0x24
mov ecx, 0x63b4f0
call fcn.004e1dd0
cmp eax, edi
je 0x58e978
mov ecx, dword [esi + 0x80]
push esi
push ecx
push 0xffffffffffffffff
mov ecx, eax
call fcn.004fd8b0
jmp 0x58e97a
xor eax, eax
mov dword [esi + 0x3c], eax
test byte [esi + 0x8a], 1
je 0x58e98d
mov ecx, esi
call fcn.00550b90
mov eax, dword [esi + 0x28]
cmp dword [eax + 0x7c], 2
je 0x58ebf9
cmp word [eax + 0x30], di
jne 0x58e9aa
cmp word [eax + 0x3c], di
je 0x58eb6b
push ebp
call fcn.00510980
mov ebx, eax
mov eax, dword [esi + 0x80]
cmp eax, 9
mov ebp, 1
je 0x58e9c4
mov ebp, eax
push 0
lea ecx, [esp + 0x18]
mov edi, 1
call fcn.004f5dd0
test byte [esi + 9], 8
mov edx, dword [0x7267ec]
mov dword [esi + 0x78], edx
jne 0x58e9ef
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x58eb58
mov eax, dword [esi + 0x28]
movzx eax, word [eax + 0x30]
test ax, ax
je 0x58ea1f
push 4
push esi
push 0
push esi
push ebp
push eax
mov ecx, ebx
call fcn.005126e0
mov edi, eax
test edi, edi
jne 0x58ea51
lea ecx, [ebx + 0x38]
push ecx
lea ecx, [esp + 0x18]
call fcn.004f5e90
jmp 0x58ea51
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 0x58ea51
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.004f1970
xor edi, edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x58ea86
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 0x58ea86
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 8]
cmp dword [edx + 0x50], 2
jne 0x58ea86
mov dword [esp + 0x10], 0
test edi, edi
jne 0x58eb58
test byte [esi + 0x8a], 1
je 0x58eb58
mov al, byte [esi + 9]
shr al, 3
and al, 1
je 0x58eaf8
cmp dword [esi + 0x84], 0xd
jne 0x58eaf8
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx + 0x80]
test edx, edx
je 0x58eaf8
mov edx, dword [ecx + 0x50]
test edx, edx
je 0x58eaf8
cmp dword [esi + 0x80], 0xa
jne 0x58eb44
mov eax, dword [esi + 0x3c]
test byte [eax + 9], 1
je 0x58eaf1
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 0x58eb58
lea ecx, [esp + 0x14]
push ecx
jmp 0x58eb49
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x58eb44
mov ecx, dword [esi + 0x38]
cmp byte [ecx], 0
je 0x58eb44
test al, al
je 0x58eb58
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 0x58eb58
test byte [esi + 0x8c], 2
jne 0x58eb3d
mov eax, dword [esi + 0x28]
cmp dword [eax + 0x80], 2
jne 0x58eb58
test byte [esi + 0x8a], 0x20
je 0x58eb58
lea ecx, [esp + 0x14]
push ecx
jmp 0x58eb49
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.0055ea00
mov ecx, esi
push eax
call fcn.004eb1f0
lea ecx, [esp + 0x14]
call fcn.004f5e70
mov ecx, ebx
call fcn.00510970
xor edi, edi
pop ebp
mov ecx, esi
call fcn.00550a90
mov ecx, esi
call fcn.00550af0
test byte [esi + 9], 8
je 0x58ebb7
cmp dword [0x63b8b0], edi
je 0x58eba3
cmp dword [esi + 0x48], edi
jne 0x58eb93
mov ecx, esi
call fcn.00513e10
mov eax, dword [esi + 0x48]
mov dword [eax + 0x50], 1
mov dword [0x63b8b0], edi
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx + 0x6c]
cmp edx, 1
jle 0x58ebb7
mov ecx, dword [esi + 0x38]
push edi
call fcn.004ea0a0
cmp dword [esi + 0x48], edi
je 0x58ebf9
mov dl, byte [esi + 0x8c]
and dl, 2
cmp dl, 4
je 0x58ebf9
mov eax, dword [esi + 0x80]
cmp eax, 5
je 0x58ebda
cmp eax, 6
jne 0x58ebf9
test byte [esi + 0x8a], 1
je 0x58ebeb
push edi
mov ecx, esi
call fcn.0055e820
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x38]
add ecx, 0x24
call fcn.004ea010
mov eax, dword [esi + 0x48]
cmp eax, edi
pop ebx
je 0x58ec04
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