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

Disassembly:
push ebp
mov edx, 0x39
xor ebp, ebp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x19c
mov ebx, dword [0x359d60]
mov ecx, dword [0x359d68]
mov dword [esp + 0x14], eax
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0xc
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0xc
lea esi, [esi]
nop
test ecx, ecx
jle 0x31e06c
cmp dword [ebx], edx
je 0x31e0a0
xor eax, eax
jmp 0x31e065
cmp edx, dword [ebx + eax*4]
je 0x31e0a0
add eax, 1
cmp eax, ecx
jne 0x31e060
cmp edi, ebp
jl 0x31e0a8
je 0x31e2d2
cmp edi, 0x10
jg 0x31e150
mov ebx, dword [0x359d60]
mov ecx, dword [0x359d68]
mov ebp, edi
lea esi, [esi]
movzx edx, byte [ebp + 0x335a58]
jmp 0x31e050
add ebp, 1
cmp ebp, 0x11
jne 0x31e090
cmp ebp, dword [0x359d5c]
je 0x31e399
cmp ebp, 0x11
jg 0x31e834
cmp ebp, edi
jl 0x31e834
mov ebx, ebp
sub ebx, edi
cmp ebx, 0x11
je 0x31e203
lea eax, [ebx + 1]
mov dword [esp + 0x10], eax
call fcn.003175e0
mov edx, ebx
mov esi, eax
lea eax, [edi + 0x335a58]
cmp ebx, 4
jae 0x31e283
test ebx, ebx
je 0x31e103
movzx ecx, byte [eax]
mov byte [esi], cl
test bl, 2
jne 0x31e64d
mov byte [esi + ebx], 0
test ebx, ebx
jg 0x31e23f
mov dword [esp + 0x8c], 0x3350a8
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 1
lea ebx, [esp + 0xa8]
lea edx, [esp + 0x8c]
mov edi, ebp
mov eax, ebx
call fcn.00317e70
cmp edi, 0x10
jle 0x31e07f
mov eax, dword [esp + 0xb0]
lea ebx, [esp + 0xa8]
test eax, eax
jg 0x31e1d0
jmp 0x31e43b
mov ebp, dword [eax]
lea eax, [esi + 1]
call fcn.003175e0
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov edi, eax
mov dword [esp], eax
call fcn.00331b54
mov byte [edi + esi], 0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0
lea edx, [esp + 0x2c]
lea eax, [esp + 0xc0]
call fcn.00317e70
mov eax, dword [esp + 0xb0]
lea edx, [eax - 1]
mov eax, ebx
call fcn.0031dc20
mov eax, dword [esp + 0xb0]
test eax, eax
jle 0x31e43b
sub eax, 1
imul eax, dword [esp + 0xbc]
add eax, dword [esp + 0xa8]
mov esi, dword [eax + 4]
test esi, esi
jg 0x31e170
mov dword [esp + 0x2c], 0x3350a8
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 1
jmp 0x31e1a0
mov eax, 0x12
call fcn.003175e0
mov dword [esp + 0x10], 0x12
mov edx, 0x11
mov dword [eax], 0x2d363939
mov esi, eax
mov dword [eax + 4], 0x322d3932
mov dword [eax + 8], 0x2b322f30
mov dword [eax + 0xc], 0x2a322b36
mov byte [eax + 0x10], 0x33
mov byte [eax + 0x11], 0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], edx
call fcn.003175e0
mov edx, dword [esp + 0x18]
cmp edx, 4
jae 0x31e3a3
test edx, edx
jne 0x31e4b9
mov byte [eax + edx], 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], 0
jmp 0x31e130
mov ecx, dword [edi + 0x335a58]
lea edi, [esi + 4]
and edi, 0xfffffffc
mov dword [esi], ecx
mov ecx, dword [eax + ebx - 4]
mov dword [esi + ebx - 4], ecx
mov ecx, esi
sub ecx, edi
sub eax, ecx
add ecx, ebx
and ecx, 0xfffffffc
cmp ecx, 4
jb 0x31e103
mov dword [esp + 0x1c], ebx
and ecx, 0xfffffffc
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov edx, dword [eax + ecx]
mov dword [edi + ecx], edx
add ecx, 4
cmp ecx, dword [esp + 0x18]
jb 0x31e2ba
mov edx, dword [esp + 0x1c]
jmp 0x31e103
movzx ebx, byte [edi + 0x335a58]
call fcn.00317910
mov esi, eax
mov byte [eax], bl
mov byte [eax + 1], 0
cmp bl, 0x28
je 0x31e3ee
cmp bl, 0x2a
je 0x31e2fd
cmp bl, 0x2f
jne 0x31e4d6
mov eax, dword [esp + 0xb0]
lea ebx, [esp + 0xa8]
test eax, eax
jle 0x31e362
sub eax, 1
imul eax, dword [esp + 0xbc]
add eax, dword [esp + 0xa8]
mov edx, dword [eax]
mov ebp, dword [eax + 4]
test edx, edx
je 0x31e5f5
mov dword [esp + 0x18], edi
lea ebx, [esp + 0xa8]
mov dword [esp + 0x10], esi
mov esi, edx
cmp ebp, 1
jne 0x31e570
movzx eax, byte [esi]
cmp al, 0x28
je 0x31e35a
sub eax, 0x2b
test al, 0xfd
jne 0x31e578
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov eax, 2
call fcn.003175e0
movzx edx, byte [esi]
mov dword [esp + 0x6c], 1
mov byte [eax + 1], 0
mov byte [eax], dl
lea edx, [esp + 0x68]
mov dword [esp + 0x68], eax
mov eax, ebx
mov dword [esp + 0x70], 0
call fcn.00317e70
jmp 0x31e433
mov ebx, 0x11
jmp 0x31e0c7
mov ecx, dword [esi]
lea edi, [eax + 4]
and edi, 0xfffffffc
mov dword [eax], ecx
mov ecx, dword [esi + edx - 4]
mov dword [eax + edx - 4], ecx
mov ecx, eax
sub ecx, edi
sub esi, ecx
add ecx, edx
and ecx, 0xfffffffc
cmp ecx, 4
jb 0x31e261
mov dword [esp + 0x18], eax
and ecx, 0xfffffffc
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov eax, dword [esi + ecx]
mov dword [edi + ecx], eax
add ecx, 4
cmp ecx, dword [esp + 0x10]
jb 0x31e3d6
mov eax, dword [esp + 0x18]
jmp 0x31e261
mov eax, 2
lea ebx, [esp + 0xa8]
call fcn.003175e0
movzx edx, byte [esi]
mov dword [esp + 0x84], 1
mov byte [eax + 1], 0
mov byte [eax], dl
lea edx, [esp + 0x80]
mov dword [esp + 0x80], eax
mov eax, ebx
mov dword [esp + 0x88], 0
call fcn.00317e70
add edi, 1
jmp 0x31e076
mov esi, dword [esp + 0x14]
mov byte [esp + 0xf0], 0
mov eax, dword [esp + 0xf0]
mov dword [esi], eax
mov eax, dword [0x359d4c]
mov dword [esi + 4], eax
mov eax, dword [0x359d50]
mov dword [esi + 8], eax
mov eax, dword [0x359d54]
mov dword [esi + 0xc], eax
mov eax, dword [0x359d58]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0xc0]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0xc4]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0xc8]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0xcc]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0xd0]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0xd4]
mov dword [esi + 0x28], eax
mov eax, esi
add esp, 0x19c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ecx, byte [esi]
mov byte [eax], cl
test dl, 2
je 0x31e261
movzx ecx, word [esi + edx - 2]
mov word [eax + edx - 2], cx
jmp 0x31e261
lea eax, [ebx - 0x2b]
test al, 0xfd
jne 0x31e71d
mov eax, dword [esp + 0xb0]
test eax, eax
jle 0x31e711
sub eax, 1
imul eax, dword [esp + 0xbc]
add eax, dword [esp + 0xa8]
mov ebp, dword [eax]
mov edx, dword [eax + 4]
test ebp, ebp
je 0x31e6cb
mov eax, edx
lea ebx, [esp + 0xa8]
mov edx, ebp
mov ebp, eax
cmp ebp, 1
jne 0x31e660
cmp byte [edx], 0x28
jne 0x31e6d0
mov eax, 2
call fcn.003175e0
movzx edx, byte [esi]
mov dword [esp + 0x54], 1
mov byte [eax + 1], 0
mov byte [eax], dl
lea edx, [esp + 0x50]
mov dword [esp + 0x50], eax
mov eax, ebx
mov dword [esp + 0x58], 0
call fcn.00317e70
jmp 0x31e433
test ebp, ebp
jle 0x31e630
lea eax, [ebp + 1]
call fcn.003175e0
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov edi, eax
mov dword [esp], eax
call fcn.00331b54
mov byte [edi + ebp], 0
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], 0
lea edx, [esp + 0x74]
lea eax, [esp + 0xc0]
call fcn.00317e70
mov eax, dword [esp + 0xb0]
lea edx, [eax - 1]
mov eax, ebx
call fcn.0031dc20
mov eax, dword [esp + 0xb0]
test eax, eax
jle 0x31e35a
sub eax, 1
imul eax, dword [esp + 0xbc]
add eax, dword [esp + 0xa8]
mov esi, dword [eax]
mov ebp, dword [eax + 4]
test esi, esi
jne 0x31e33f
mov eax, 0x3357f6
mov edx, 0x17
mov ecx, 1
mov dword [esp + 0xf0], 0x3357f6
mov dword [esp + 0xf4], 0x17
mov dword [esp + 0xf8], 1
call fcn.003174a0
lea esi, [esi]
mov dword [esp + 0x74], 0x3350a8
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 1
jmp 0x31e5a6
movzx eax, word [eax + ebx - 2]
mov word [esi + ebx - 2], ax
jmp 0x31e103
test ebp, ebp
jg 0x31e6d0
mov dword [esp + 0x5c], 0x3350a8
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 1
lea edx, [esp + 0x5c]
lea eax, [esp + 0xc0]
call fcn.00317e70
mov eax, dword [esp + 0xb0]
lea edx, [eax - 1]
mov eax, ebx
call fcn.0031dc20
mov eax, dword [esp + 0xb0]
test eax, eax
jle 0x31e52e
sub eax, 1
imul eax, dword [esp + 0xbc]
add eax, dword [esp + 0xa8]
mov edx, dword [eax]
mov ebp, dword [eax + 4]
test edx, edx
jne 0x31e51c
call fcn.00317b90
lea eax, [ebp + 1]
mov dword [esp + 0x10], edx
call fcn.003175e0
mov edx, dword [esp + 0x10]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 0x10], eax
call fcn.00331b54
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], 0
mov byte [ecx + ebp], 0
mov dword [esp + 0x5c], ecx
jmp 0x31e67c
lea ebx, [esp + 0xa8]
jmp 0x31e52e
cmp bl, 0x29
je 0x31ea85
xor ebx, ebx
lea edi, [esp + 0x108]
mov ecx, 0xa
mov eax, ebx
lea edx, [esp + 0xf0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x100], esi
mov dword [esp + 0xf0], 0x335a93
mov dword [esp + 0xf4], 0x18
mov dword [esp + 0xf8], 1
mov dword [esp + 0xfc], 0xfe10
mov dword [esp + 0x104], 1
mov dword [esp + 0x110], 0x335aac
mov dword [esp + 0x114], 1
mov dword [esp + 0x118], 1
call fcn.00317190
mov eax, dword [esp + 0x38]
mov dword [esp + 0xa4], 0
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xa0], eax
mov eax, 0x10
call fcn.00314ec0
mov edi, dword [esp + 0x14]
mov ecx, 0xb
mov edx, eax
mov eax, dword [esp + 0x98]
mov dword [edx], eax
mov eax, dword [esp + 0x9c]
mov dword [edx + 4], eax
mov eax, dword [esp + 0xa0]
mov dword [edx + 8], eax
mov eax, dword [esp + 0xa4]
mov dword [edx + 0xc], eax
mov eax, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
mov dword [edi + 4], edx
mov eax, edi
mov dword [edi + 0xc], edx
add edx, 0xc
mov byte [edi], 1
mov dword [edi + 8], 3
mov dword [edi + 0x10], edx
jmp 0x31e4ae
mov esi, edi
xor eax, eax
lea edi, [esp + 0x104]
mov ecx, 0x23
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1b8]
mov dword [esp + 0x100], esi
mov dword [esp + 0xf0], 0x335a6a
mov dword [esp + 0x168], eax
mov eax, 0x100
mov dword [esp + 0xf4], 7
mov dword [esp + 0xf8], 1
mov dword [esp + 0xfc], 0xfe07
mov dword [esp + 0x110], 0x335a72
mov dword [esp + 0x114], 2
mov dword [esp + 0x118], 1
mov dword [esp + 0x11c], 0xfe07
mov dword [esp + 0x120], ebp
mov dword [esp + 0x130], 0x335a75
mov dword [esp + 0x134], 0x15
mov dword [esp + 0x138], 1
mov dword [esp + 0x13c], 0xfe07
mov dword [esp + 0x140], 0x11
mov dword [esp + 0x150], 0x335a8b
mov dword [esp + 0x154], 5
mov dword [esp + 0x158], 1
mov dword [esp + 0x15c], 0xfe10
mov dword [esp + 0x160], 0x335a58
mov dword [esp + 0x164], 0x11
mov dword [esp + 0x170], 0x335a91
mov dword [esp + 0x174], 1
mov dword [esp + 0x178], 1
call fcn.00317c30
mov ecx, dword [esp + 0xf4]
mov dword [esp + 0xdc], 0
mov dword [esp + 0xd8], eax
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0x100
mov dword [esp + 0xe8], 1
mov dword [esp + 0xec], 1
test ecx, ecx
jne 0x31ec9e
mov esi, dword [esp + 0xfc]
test esi, esi
jne 0x31ec86
mov ecx, dword [esp + 0x114]
test ecx, ecx
jne 0x31ec5e
mov ebx, dword [esp + 0x11c]
test ebx, ebx
jne 0x31ec46
mov ecx, dword [esp + 0x134]
test ecx, ecx
jne 0x31ec1e
mov ecx, dword [esp + 0x13c]
test ecx, ecx
jne 0x31ec06
mov ecx, dword [esp + 0x154]
test ecx, ecx
jne 0x31ebde
mov edx, dword [esp + 0x15c]
test edx, edx
jne 0x31ebc6
mov ecx, dword [esp + 0x174]
test ecx, ecx
jne 0x31eba0
mov eax, dword [esp + 0x17c]
test eax, eax
jne 0x31eb88
lea edx, [esp + 0x38]
lea eax, [esp + 0xd8]
mov byte [esp + 0x38], 0
call fcn.003191b0
mov ebx, dword [esp + 0xe0]
test ebx, ebx
je 0x31eb79
mov esi, dword [esp + 0xd8]
mov eax, ebx
call fcn.003175e0
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00331b54
mov esi, dword [esp + 0xe0]
xor ecx, ecx
lea edx, [esi - 1]
call fcn.003174a0
mov eax, dword [esp + 0xb0]
lea ebx, [esp + 0xa8]
lea edx, [eax - 1]
test eax, eax
jle 0x31eaca
mov eax, dword [esp + 0xbc]
imul eax, edx
add eax, dword [esp + 0xa8]
mov ebp, dword [eax]
mov esi, dword [eax + 4]
test ebp, ebp
je 0x31e6cb
lea ebx, [esp + 0xa8]
cmp esi, 1
jne 0x31ead6
cmp byte [ebp], 0x28
jne 0x31eb40
mov eax, ebx
call fcn.0031dc20
jmp 0x31e433
test esi, esi
jg 0x31eb40
mov dword [esp + 0x44], 0x3350a8
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 1
lea edx, [esp + 0x44]
lea eax, [esp + 0xc0]
call fcn.00317e70
mov eax, dword [esp + 0xb0]
lea edx, [eax - 1]
mov eax, ebx
call fcn.0031dc20
mov eax, dword [esp + 0xb0]
lea edx, [eax - 1]
test eax, eax
jle 0x31eaca
mov eax, dword [esp + 0xbc]
imul eax, edx
add eax, dword [esp + 0xa8]
mov ebp, dword [eax]
mov esi, dword [eax + 4]
test ebp, ebp
jne 0x31eabf
jmp 0x31e6cb
lea eax, [esi + 1]
call fcn.003175e0
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov dword [esp], eax
mov dword [esp + 0x10], eax
call fcn.00331b54
mov edx, dword [esp + 0x10]
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], 0
mov byte [edx + esi], 0
mov dword [esp + 0x44], edx
jmp 0x31eaf2
mov eax, 1
call fcn.00317c30
jmp 0x31ea74
lea edx, [esp + 0xd8]
lea eax, [esp + 0x170]
call fcn.00315200
jmp 0x31ea32
mov edx, dword [esp + 0x170]
jle 0x31ea23
test edx, edx
je 0x31ea23
lea eax, [esp + 0xd8]
call fcn.00317fa0
jmp 0x31ea23
lea edx, [esp + 0xd8]
lea eax, [esp + 0x150]
call fcn.00315200
jmp 0x31ea14
mov edx, dword [esp + 0x150]
test edx, edx
je 0x31ea05
test ecx, ecx
jle 0x31ea05
lea eax, [esp + 0xd8]
call fcn.00317fa0
jmp 0x31ea05
lea edx, [esp + 0xd8]
lea eax, [esp + 0x130]
call fcn.00315200
jmp 0x31e9f6
mov edx, dword [esp + 0x130]
test edx, edx
je 0x31e9e7
test ecx, ecx
jle 0x31e9e7
lea eax, [esp + 0xd8]
call fcn.00317fa0
jmp 0x31e9e7
lea edx, [esp + 0xd8]
lea eax, [esp + 0x110]
call fcn.00315200
jmp 0x31e9d8
mov edx, dword [esp + 0x110]
test edx, edx
je 0x31e9c9
test ecx, ecx
jle 0x31e9c9
lea eax, [esp + 0xd8]
call fcn.00317fa0
jmp 0x31e9c9
lea edx, [esp + 0xd8]
lea eax, [esp + 0xf0]
call fcn.00315200
jmp 0x31e9ba
mov edx, dword [esp + 0xf0]
test edx, edx
je 0x31e9ab
test ecx, ecx
jle 0x31e9ab
lea eax, [esp + 0xd8]
call fcn.00317fa0
jmp 0x31e9ab