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

Disassembly:
sub esp, 0x5c
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x70]
test byte [ebp], 0x20
push esi
mov esi, dword [esp + 0x70]
push edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], eax
mov edx, 1
je 0x3a0977
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx + 0x10214]
and ecx, dword [ebp + 0x1c]
cmp ecx, dword [esi + 0x764]
je 0x3a0977
mov dword [esi + 0x764], ecx
mov dword [esp + 0x30], edx
test byte [ebp], 0x40
je 0x3a099e
mov ecx, dword [ebp + 0x20]
sub ecx, eax
je 0x3a098e
sub ecx, edx
jne 0x3a0992
or byte [esi + 0x19], 4
jmp 0x3a0992
and byte [esi + 0x19], 0xfb
mov dword [esp + 0x74], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x34], edx
test byte [ebp], 1
je 0x3a0d8a
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 4]
lea ebx, [ebp + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
test byte [esi + 0x774], 2
mov dword [esp + 0x24], eax
jne 0x3a0a04
mov edx, dword [esi + 0x280]
mov dword [esi + 0x784], edx
mov eax, dword [esi + 0x284]
mov dword [esi + 0x788], eax
mov ecx, dword [esi + 0xd0]
add ecx, dword [esi + 0x280]
mov dword [esi + 0x78c], ecx
mov edx, dword [esi + 0xd4]
add edx, dword [esi + 0x284]
mov dword [esi + 0x790], edx
mov edx, dword [ebx]
cmp edx, dword [esi + 0x280]
jne 0x3a0a5c
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x284]
jne 0x3a0a5c
mov ecx, dword [esi + 0x18]
and ecx, 0x400
je 0x3a0a34
cmp edx, dword [esi + 0x288]
jne 0x3a0a5c
cmp eax, dword [esi + 0x28c]
jne 0x3a0a5c
test ecx, ecx
mov edi, dword [esp + 0x70]
jne 0x3a0a68
mov ecx, edx
sub ecx, dword [edi + 0x101e8]
cmp ecx, dword [esi + 0x288]
jne 0x3a0a60
sub eax, dword [edi + 0x101ec]
cmp eax, dword [esi + 0x28c]
je 0x3a0a68
jmp 0x3a0a60
mov edi, dword [esp + 0x70]
mov dword [esp + 0x74], 1
cmp edx, dword [edi + 0x101e8]
jne 0x3a0aa8
mov edx, dword [ebp + 8]
cmp edx, dword [edi + 0x101ec]
jne 0x3a0aa8
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0x101f0]
jne 0x3a0aa8
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [edi + 0x101f4]
jne 0x3a0aa8
test byte [esi + 0x19], 4
jne 0x3a0aa8
test dword [esi + 0x14], 0x104001
jne 0x3a0aa8
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x28]
cmp edx, dword [esi + 0xd0]
jne 0x3a0ac0
mov eax, dword [esp + 0x24]
cmp eax, dword [esi + 0xd4]
je 0x3a0acd
mov eax, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0x74], 0
je 0x3a0ae3
mov ecx, dword [esi + 0x764]
push 1
push ecx
push edi
call fcn.003a68e0
mov eax, dword [esi + 0x774]
test eax, 0x80000
je 0x3a0b02
and eax, 0xfff7ffff
mov dword [esi + 0x774], eax
mov eax, 1
jmp 0x3a0b06
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x74], 0
jne 0x3a0b20
cmp dword [esp + 0x14], 0
jne 0x3a0b20
test eax, eax
je 0x3a0d8a
mov edi, dword [esp + 0x70]
or dword [esi + 0x774], 2
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov dword [esi + 0xd4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0xd0], edx
mov ecx, dword [ebx]
and eax, 0x400
mov dword [esi + 0x280], ecx
mov edx, dword [ebp + 8]
mov dword [esp + 0x38], eax
mov dword [esi + 0x284], edx
mov eax, ecx
je 0x3a0b6c
mov dword [esi + 0x288], eax
mov eax, edx
mov dword [esi + 0x28c], eax
jmp 0x3a0b8a
sub eax, dword [edi + 0x101e8]
mov ecx, dword [esi + 0x284]
mov dword [esi + 0x288], eax
sub ecx, dword [edi + 0x101ec]
mov dword [esi + 0x28c], ecx
mov ebp, dword [esi + 0x14]
test ebp, 0x104001
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x4c], edx
jne 0x3a0c2d
cmp dword [esp + 0x38], 0
jne 0x3a0c2d
mov ebx, dword [esp + 0x70]
mov ebx, dword [ebx + 0x101f0]
cmp edx, ebx
mov dword [esp + 0x3c], ebx
jge 0x3a0c25
mov ebx, dword [esp + 0x70]
mov ebx, dword [ebx + 0x101e8]
cmp edi, ebx
mov dword [esp + 0x38], ebx
jle 0x3a0c25
mov ebx, dword [esp + 0x70]
mov ebx, dword [ebx + 0x101f4]
cmp eax, ebx
mov dword [esp + 0x44], ebx
jge 0x3a0c25
mov ebx, dword [esp + 0x70]
mov ebx, dword [ebx + 0x101ec]
cmp ecx, ebx
mov dword [esp + 0x40], ebx
jle 0x3a0c25
mov ebx, dword [esp + 0x38]
cmp edx, ebx
jge 0x3a0c05
mov edx, ebx
mov dword [esp + 0x4c], edx
mov ebx, dword [esp + 0x3c]
cmp edi, ebx
jle 0x3a0c0f
mov edi, ebx
mov ebx, dword [esp + 0x40]
cmp eax, ebx
jge 0x3a0c19
mov eax, ebx
mov ebx, dword [esp + 0x44]
cmp ecx, ebx
jle 0x3a0c2d
mov ecx, ebx
jmp 0x3a0c2d
mov edx, edi
mov dword [esp + 0x4c], edx
mov eax, ecx
xor ebx, ebx
sub ecx, eax
cmp dword [esi + 0x298], ecx
mov dword [esi + 0x29c], ecx
setne bl
sub edi, dword [esp + 0x4c]
mov dword [esi + 0x298], edi
mov dword [esp + 0x44], ebx
mov ebx, edx
mov edx, dword [esi + 0x280]
sub ebx, edx
mov dword [esi + 0x290], ebx
mov ebx, dword [esi + 0x284]
sub eax, ebx
mov dword [esi + 0x294], eax
mov eax, ebp
and eax, 0x800000
je 0x3a0c84
cmp dword [esp + 0x20], 0
jne 0x3a0c84
and ebp, 0xff7fffff
jmp 0x3a0c94
test eax, eax
jne 0x3a0c9f
cmp dword [esp + 0x20], eax
je 0x3a0c9f
or ebp, 0x800000
mov dword [esp + 0x10], 1
mov dword [esi + 0x14], ebp
mov eax, dword [esi + 0x2b4]
test al, 1
mov edi, eax
je 0x3a0d55
mov eax, dword [esp + 0x24]
push 0
lea ecx, [ebx + eax]
mov eax, dword [esp + 0x2c]
push ecx
lea ecx, [edx + eax]
push ecx
push ebx
push edx
call fcn.003a8b70
test eax, eax
jne 0x3a0cd5
or byte [esi + 0x2b5], 8
jmp 0x3a0cdc
and byte [esi + 0x2b5], 0xf7
mov ecx, dword [esi + 0x2b4]
test cl, 2
je 0x3a0cf1
cmp eax, 1
ja 0x3a0cf1
and ch, 0xfe
jmp 0x3a0cf4
or ch, 1
test dword [esi + 0x14], 0x104001
mov dword [esi + 0x2b4], ecx
je 0x3a0d19
test byte [esi + 0x18], 3
jne 0x3a0d12
or byte [esi + 0x2b5], 1
jmp 0x3a0d19
and byte [esi + 0x2b5], 0xfe
test byte [esi + 0x19], 4
je 0x3a0d26
or byte [esi + 0x2b5], 1
mov eax, dword [esi + 0x2b4]
test eax, 0x10000
je 0x3a0d3c
and ah, 0xfe
mov dword [esi + 0x2b4], eax
cmp edi, dword [esi + 0x2b4]
je 0x3a0d55
mov eax, dword [esi + 0xc]
add dword [eax], 1
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
mov dword [esi + 0xdc], eax
mov eax, dword [esp + 0x70]
test byte [eax + 0x103b0], 1
je 0x3a0d73
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x74]
push ecx
push edx
push esi
push eax
call fcn.00397b20
test byte [esi + 0x2b4], 1
mov ebp, dword [esp + 0x78]
jne 0x3a0d8a
mov dword [esi + 0x2b4], 0
test byte [ebp], 2
je 0x3a0f71
mov eax, dword [esi + 0x780]
test eax, eax
mov edi, dword [ebp + 0x18]
je 0x3a0dfb
cmp edi, dword [eax]
jne 0x3a0dfb
test edi, edi
mov ebx, dword [ebp + 0x14]
lea edx, [eax + 0x10]
mov dword [esp + 0x78], 0
jle 0x3a0f2e
lea ecx, [ebx + 0xc]
lea eax, [edx + 8]
sub ebx, edx
mov edx, dword [eax - 8]
cmp edx, dword [ecx - 0xc]
jne 0x3a0dfb
mov edx, dword [eax]
cmp edx, dword [ebx + eax]
jne 0x3a0dfb
mov edx, dword [eax - 4]
cmp edx, dword [ecx - 8]
jne 0x3a0dfb
mov edx, dword [eax + 4]
cmp edx, dword [ecx]
jne 0x3a0dfb
mov edx, dword [esp + 0x78]
add edx, 1
add ecx, 0x10
add eax, 0x10
cmp edx, edi
mov dword [esp + 0x78], edx
jl 0x3a0dc3
jmp 0x3a0f2e
or byte [esi + 0x775], 8
lea ebx, [esi + 0x780]
push ebx
mov dword [esp + 0x1c], 1
mov dword [esi + 0x720], 0
call fcn.00048980
lea eax, [edi + 1]
push 0x7264476e
shl eax, 4
push eax
call fcn.00048910
test eax, eax
mov dword [ebx], eax
jne 0x3a0e46
pop edi
pop esi
pop ebp
mov eax, 0xee00006
pop ebx
add esp, 0x5c
ret 0xc
mov ecx, dword [ebp + 0x18]
mov dword [eax], ecx
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 4], ecx
mov eax, dword [ebx]
mov dword [eax + 8], ecx
mov edx, dword [ebx]
mov dword [edx + 0xc], ecx
mov eax, dword [ebx]
add eax, 0x10
cmp edi, ecx
jle 0x3a0e9a
mov dword [esp + 0x78], edi
lea esp, [esp]
mov edx, dword [ebp + 0x14]
add edx, ecx
mov ebx, dword [edx]
mov edi, eax
mov dword [edi], ebx
mov ebx, dword [edx + 4]
mov dword [edi + 4], ebx
mov ebx, dword [edx + 8]
mov dword [edi + 8], ebx
mov edx, dword [edx + 0xc]
add eax, 0x10
add ecx, 0x10
sub dword [esp + 0x78], 1
mov dword [edi + 0xc], edx
jne 0x3a0e70
mov edi, dword [esp + 0x70]
push edi
call fcn.0039b440
and dword [esi + 0x14], 0xfffffff3
and byte [esi + 0x775], 0xef
cmp dword [esi + 0x248], 0
mov ebx, 0x4000
je 0x3a0ed8
test byte [edi + 0x11], 0x10
je 0x3a0ed8
mov eax, dword [esi + 0x14]
test ebx, eax
je 0x3a0ed3
test byte [edi + 0x10244], 0x80
jne 0x3a0ed8
or al, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x780]
mov ecx, dword [eax]
cmp ecx, dword [edi + 0x10204]
jle 0x3a0f2e
cmp dword [eax + 4], 0
jne 0x3a0f2e
test dword [edi + 0x10], ebx
je 0x3a0f1e
cmp dword [edi + 0x10208], 0
jle 0x3a0f0a
test byte [esi + 0x16], 4
je 0x3a0f0a
push esi
mov eax, edi
call fcn.0039af80
mov edx, dword [esi + 0x14]
and edx, 0xffffffef
or edx, 0xc
mov dword [esi + 0x14], edx
or dword [esi + 0x774], ebx
jmp 0x3a0f2e
cmp dword [esi + 0x204], 0
je 0x3a0f2e
or byte [esi + 0x775], 0x10
mov eax, dword [esi + 0x780]
and byte [esi + 0x775], 0xfe
cmp dword [eax], 1
mov ecx, dword [esi + 0x774]
jne 0x3a0f71
cmp dword [eax + 0x10], 0
jne 0x3a0f71
cmp dword [eax + 0x14], 0
jne 0x3a0f71
mov edx, dword [eax + 0x18]
cmp edx, dword [esi + 0xd0]
jne 0x3a0f71
mov eax, dword [eax + 0x1c]
cmp eax, dword [esi + 0xd4]
jne 0x3a0f71
or ch, 1
mov dword [esi + 0x774], ecx
test byte [ebp], 4
je 0x3a0f95
mov eax, dword [esi + 0x774]
test ah, ah
js 0x3a0f95
or ah, 0x80
mov edx, 1
mov dword [esp + 0x1c], edx
mov dword [esi + 0x774], eax
jmp 0x3a0f9a
mov edx, 1
test byte [ebp], 8
je 0x3a0fb7
mov eax, dword [esi + 0x774]
test ah, ah
jns 0x3a0fb7
and ah, 0x7f
mov dword [esp + 0x1c], edx
mov dword [esi + 0x774], eax
test byte [ebp], 0x10
je 0x3a0fc5
or byte [esi + 0x17], 0x40
mov dword [esp + 0x30], edx
xor ebx, ebx
cmp dword [esp + 0x74], ebx
jne 0x3a0fdf
cmp dword [esp + 0x14], ebx
jne 0x3a0fdf
cmp dword [esp + 0x18], ebx
jne 0x3a0fdf
cmp dword [esp + 0x1c], ebx
je 0x3a0fec
test byte [esi + 0x14], 0xc
je 0x3a0fec
or byte [esi + 0x775], 0x48
test dword [esi + 0x14], 0x104001
jne 0x3a1048
test byte [esi + 0x19], 4
jne 0x3a1048
cmp dword [esi + 0xd0], ebx
je 0x3a1048
cmp dword [esi + 0xd4], ebx
je 0x3a1048
cmp dword [esi + 0x298], ebx
je 0x3a1048
cmp dword [esi + 0x29c], ebx
je 0x3a1048
mov eax, dword [esi + 0x780]
cmp eax, ebx
je 0x3a1048
mov ecx, dword [eax]
sub ecx, ebx
je 0x3a1048
sub ecx, edx
jne 0x3a103f
mov ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x18]
je 0x3a1048
mov edx, dword [eax + 0x14]
cmp edx, dword [eax + 0x1c]
je 0x3a1048
and byte [esi + 0x774], 0x7f
jmp 0x3a104f
or byte [esi + 0x774], 0x80
mov edx, dword [esi + 0x278]
mov ebp, dword [esp + 0x70]
lea ecx, [esp + 0x70]
push ecx
mov eax, 1
cmp eax, dword [esi + 0x2a8]
push edx
push esi
sbb edi, edi
push ebp
neg edi
call fcn.0039b6b0
cmp edi, eax
je 0x3a10d0
cmp edi, ebx
je 0x3a10c3
mov eax, dword [esi + 0x764]
push ebx
push eax
push ebp
call fcn.003a68e0
test byte [esi + 0x16], 4
mov dword [esi + 0x2a8], 1
mov dword [esi + 0x1f4], ebx
jne 0x3a10d0
lea ecx, [esp + 0x4c]
push ecx
push 0x39cf40
push ebx
push ebx
push ebx
push esi
push ebp
mov dword [esp + 0x78], 0x10040
mov dword [esp + 0x7c], ebx
call fcn.0039ccd0
jmp 0x3a10d0
mov eax, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], eax
test byte [esi + 0x775], 2
mov eax, dword [esi + 0x1fc]
je 0x3a10f7
cmp eax, ebx
jbe 0x3a1125
cmp eax, 0x57
ja 0x3a1125
imul eax, eax, 0x2b0
lea eax, [eax + ebp + 0x14c0]
jmp 0x3a1106
mov edx, dword [ebp + 0x12bfc]
push eax
push 2
push edx
call fcn.00048d20
cmp eax, ebx
je 0x3a1125
mov ecx, dword [esi + 0x1f0]
lea ecx, [ecx + ecx*4]
shl ecx, 6
xor edx, edx
cmp dword [ecx + eax + 0xd8], 3
sete dl
jmp 0x3a1129
mov edx, dword [esp + 0x48]
cmp dword [ebp + 0x104b4], ebx
je 0x3a1135
xor eax, eax
jmp 0x3a118a
test byte [ebp + 0x12], 4
je 0x3a113f
xor eax, eax
jmp 0x3a118a
mov ecx, dword [esi + 0x14]
test ecx, 0x104001
je 0x3a114e
xor eax, eax
jmp 0x3a118a
mov eax, dword [esi + 0x774]
test ah, 2
je 0x3a115d
xor eax, eax
jmp 0x3a118a
test ah, 1
jne 0x3a1166
xor eax, eax
jmp 0x3a118a
test ecx, 0x800000
jne 0x3a1172
xor eax, eax
jmp 0x3a118a
test ch, 0x10
je 0x3a117b
xor eax, eax
jmp 0x3a118a
mov al, byte [ebp + 0x10480]
and al, 0x48
neg al
sbb eax, eax
add eax, 1
cmp edx, eax
je 0x3a119b
mov eax, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x74]
cmp edi, ebx
jne 0x3a11af
cmp dword [esp + 0x14], ebx
jne 0x3a11af
cmp dword [esp + 0x2c], ebx
je 0x3a11f4
cmp dword [esp + 0x10], ebx
je 0x3a11e3
test byte [esi + 0x16], 4
je 0x3a11c1
cmp dword [esp + 0x34], ebx
je 0x3a11e3
lea edx, [esp + 0x4c]
push edx
push 0x39cf40
push ebx
push ebx
push ebx
push esi
push ebp
mov dword [esp + 0x78], 0x10040
mov dword [esp + 0x7c], ebx
call fcn.0039ccd0
jmp 0x3a11ea
or dword [esi + 0x774], 4
cmp edi, ebx
jne 0x3a1206
cmp dword [esp + 0x14], ebx
jne 0x3a1206
cmp dword [esp + 0x18], ebx
jne 0x3a1206
cmp dword [esp + 0x1c], ebx
jne 0x3a1206
cmp dword [esp + 0x30], ebx
je 0x3a120c
mov eax, dword [esi + 8]
add dword [eax], 1
mov eax, dword [ebp + 0x12c00]
mov ecx, dword [esi + 0x2a4]
cmp ecx, dword [eax]
je 0x3a123c
lea edx, [esp + 0x4c]
push edx
push 0x39cf40
push ebx
push ebx
push ebx
push esi
push ebp
mov dword [esp + 0x78], 0x10040
mov dword [esp + 0x7c], ebx
call fcn.0039ccd0
mov eax, dword [esi + 8]
mov ecx, dword [eax]
pop edi
mov dword [esi + 0xd8], ecx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret 0xc