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

Disassembly:
sub esp, 0x274
mov eax, dword [esp + 0x27c]
mov ecx, dword [esp + 0x290]
push ebx
xor ebx, ebx
mov edx, dword [eax + 0x38ec]
push ebp
push esi
cmp ecx, ebx
push edi
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x34], edx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x38], ebx
jne 0x431252
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x10], eax
jmp 0x43125b
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov edx, dword [edx + 0x8c]
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x24], ecx
call fcn.0053f700
mov ecx, dword [esp + 0x294]
mov esi, dword [esp + 0x290]
cmp ecx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
je 0x4312aa
mov esi, dword [ecx + 0x30]
mov edi, dword [esp + 0x29c]
sub esi, eax
mov dword [edi], esi
mov edi, dword [ecx + 0x30]
mov ebx, dword [ecx + 0x34]
sub edi, eax
sbb ebx, edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
jmp 0x4312dc
cmp esi, ebx
je 0x4312d4
mov edi, dword [esp + 0x29c]
cmp edi, ebx
je 0x4312c0
mov ebx, dword [esi + 0x20]
sub ebx, eax
mov dword [edi], ebx
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x24]
sub edi, eax
sbb ebx, edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
jmp 0x4312dc
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x2a4]
mov ebp, esi
and ebp, dword [esp + 0x2a8]
cmp ebp, 0xffffffff
je 0x431302
mov ebx, dword [esp + 0x2a8]
mov edi, esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x34]
cmp dword [ebp + 0x94], 0
jne 0x431396
test ecx, ecx
je 0x43134d
mov esi, dword [ecx + 0x28]
mov eax, dword [ecx + 0x2c]
mov edx, esi
or edx, eax
jne 0x43133d
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
sub esi, eax
mov eax, dword [ecx + 0x1c]
sbb eax, edx
add esi, 1
adc eax, 0
mov dword [esp + 0x60], eax
mov edx, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
jmp 0x431378
mov ecx, dword [esp + 0x2a8]
push 0
mov dword [esp + 0x64], ecx
mov ecx, edi
add ecx, eax
mov eax, ebx
adc eax, edx
mov edx, dword [ebp + 0x8c]
push edx
push eax
push ecx
call fcn.0053f870
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
add esi, 0x10000
push esi
call fcn.004f56f0
mov ecx, dword [esp + 0x29c]
add esp, 4
mov dword [esp + 0x38], eax
mov dword [ecx], eax
jmp 0x4313d9
mov eax, dword [esp + 0x2b0]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
jbe 0x4313d9
mov ecx, dword [esp + 0x2ac]
mov ebp, eax
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
cmp eax, esi
jb 0x4313cb
ja 0x4313c5
cmp edx, dword [esp + 0x44]
jbe 0x4313cb
mov dword [esp + 0x44], edx
mov esi, eax
add ecx, 0x18
dec ebp
jne 0x4313b4
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x48], esi
mov edx, dword [ebp + 0x8c]
shl edx, 6
push edx
call fcn.004f56f0
mov esi, eax
mov eax, dword [ebp + 0x8c]
shl eax, 6
push eax
mov dword [esp + 0x58], esi
call fcn.004f56f0
add esp, 8
mov dword [esp + 0x28], eax
test esi, esi
je 0x431a18
test eax, eax
je 0x431a18
or edi, ebx
je 0x431a10
mov esi, dword [esp + 0x34]
xor ebp, ebp
cmp dword [esi + 0x94], ebp
je 0x43144e
mov ecx, dword [esp + 0x288]
push ecx
call fcn.00423f80
add esp, 4
test eax, eax
je 0x431a18
cmp dword [0x85ac64], ebp
jne 0x431a18
mov edx, dword [esi + 0x8c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push ebp
push edx
push eax
push ecx
call fcn.0053f870
mov edx, eax
mov eax, dword [esp + 0x48]
cmp ebp, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
ja 0x431a53
jb 0x431487
cmp edx, dword [esp + 0x44]
ja 0x431a53
mov esi, dword [esp + 0x2ac]
cmp ebp, dword [esi + 4]
jl 0x431a53
jg 0x4314a1
cmp edx, dword [esi]
jb 0x431a53
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
lea eax, [esi + 0x10]
xor ecx, ecx
or edi, ebx
mov dword [esp + 0x18], ecx
je 0x4314d2
cmp ebp, dword [eax + 0xc]
jl 0x4314ce
jg 0x4314c0
cmp edx, dword [eax + 8]
jb 0x4314ce
mov edi, dword [eax + 0x18]
mov ebx, dword [eax + 0x1c]
add eax, 0x18
inc ecx
or edi, ebx
jne 0x4314b4
mov dword [esp + 0x18], ecx
lea eax, [ecx + ecx*2]
lea eax, [esi + eax*8]
mov esi, dword [eax + 0x10]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x40], eax
mov ebx, dword [eax + 0x14]
lea ecx, [eax + 0x10]
or esi, ebx
mov dword [esp + 0x64], ecx
je 0x43152a
mov esi, dword [eax]
mov edi, dword [eax + 4]
sub edx, esi
mov ecx, ebp
sbb ecx, edi
cmp ecx, ebx
ja 0x43152a
jb 0x431508
cmp edx, dword [esp + 0x7c]
jae 0x43152a
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
test eax, eax
jl 0x43152a
jg 0x431518
test ebx, ebx
jb 0x43152a
mov edx, dword [esp + 0x10]
sub ebx, esi
sbb eax, edi
add ebx, edx
adc eax, ebp
mov dword [esp + 0x60], eax
jmp 0x431531
or ebx, 0xffffffff
mov dword [esp + 0x60], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x2b0]
push edx
mov edx, dword [esp + 0x298]
push eax
mov eax, dword [esp + 0x298]
push ecx
push edx
push eax
call fcn.004311f0
mov ecx, dword [esp + 0x4c]
mov esi, eax
add esp, 0x18
dec esi
mov edi, dword [ecx + 0x8c]
mov dword [esp + 0x78], eax
neg esi
sbb esi, esi
mov ebp, edi
and esi, 0x30
add esi, 0x10
imul ebp, esi
cmp eax, 1
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x1c], ebp
je 0x4315d5
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x40]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, dword [edx]
adc eax, dword [edx + 4]
mov edx, dword [esp + 0x14]
cmp eax, edx
jb 0x4315d5
ja 0x4315af
cmp ecx, dword [esp + 0x10]
jbe 0x4315d5
mov edx, dword [esp + 0x10]
push 0
sub ecx, edx
mov edx, dword [esp + 0x18]
sbb eax, edx
push edi
push eax
push ecx
call fcn.0053f700
xor ecx, ecx
cmp ecx, edx
jb 0x4315d5
ja 0x4315d1
cmp ebp, eax
jbe 0x4315d5
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp eax, ecx
jb 0x4315f5
ja 0x4315ed
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp edx, eax
jbe 0x4315f5
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x78]
mov ecx, 1
cmp eax, ecx
je 0x431619
mov edx, dword [esp + 0x1c]
lea eax, [edi + edx - 1]
xor edx, edx
div edi
mov esi, eax
mov ebp, esi
imul ebp, edi
mov dword [esp + 0x6c], ebp
mov edi, dword [esp + 0x60]
mov eax, ebx
and eax, edi
mov dword [esp + 0x54], 0
cmp eax, 0xffffffff
je 0x431632
mov dword [esp + 0x54], ecx
xor edx, edx
mov ecx, 0x80
or eax, 0xffffffff
lea edi, [esp + 0x84]
cmp esi, edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x4c], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x68], edx
jbe 0x4317a2
mov ecx, dword [esp + 0x54]
lea edi, [esp + 0x84]
mov dword [esp + 0x70], edi
jmp 0x43167a
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x60]
mov dword [edi], ebx
and ebx, eax
mov dword [edi + 4], eax
cmp ebx, 0xffffffff
jne 0x43169c
test ecx, ecx
je 0x4316be
test edx, edx
jne 0x4316be
mov dword [esp + 0x3c], 1
jmp 0x4316be
mov edi, dword [esp + 0x40]
inc edi
test ecx, ecx
mov dword [esp + 0x40], edi
je 0x4316be
test edx, edx
jne 0x4316b1
inc dword [esp + 0x4c]
cmp edx, 1
jne 0x4316be
mov dword [esp + 0x3c], 2
mov ecx, dword [esp + 0x68]
lea eax, [esi - 1]
cmp ecx, eax
je 0x4317a2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x14]
add edx, 1
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
adc edi, 0
or ecx, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edi
je 0x431712
mov ecx, dword [esp + 0x18]
cmp edi, dword [eax + 0xc]
jb 0x43170e
ja 0x431700
cmp edx, dword [eax + 8]
jb 0x43170e
mov ebx, dword [eax + 0x18]
mov ebp, dword [eax + 0x1c]
add eax, 0x18
inc ecx
or ebx, ebp
jne 0x4316f4
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x2ac]
lea eax, [eax + edx*8]
mov edx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
lea ecx, [eax + 0x10]
or edx, ebp
mov dword [esp + 0x64], ecx
je 0x43177b
mov edi, dword [eax]
mov edx, dword [esp + 0x10]
mov ebx, dword [eax + 4]
mov ecx, dword [esp + 0x14]
sub edx, edi
sbb ecx, ebx
cmp ecx, ebp
ja 0x43177b
jb 0x431753
mov ecx, dword [esp + 0x64]
cmp edx, dword [ecx]
jae 0x43177b
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
test eax, eax
jl 0x43177b
jg 0x431763
test ecx, ecx
jb 0x43177b
mov edx, dword [esp + 0x14]
sub ecx, edi
mov edi, dword [esp + 0x10]
sbb eax, ebx
add ecx, edi
adc eax, edx
mov ebx, ecx
mov dword [esp + 0x60], eax
jmp 0x431782
or ebx, 0xffffffff
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x70]
mov ebp, dword [esp + 0x6c]
inc eax
add edx, 8
cmp eax, esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], edx
jb 0x43166e
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x28c]
push esi
lea eax, [esp + 0x88]
push edx
push eax
push ecx
call fcn.004307b0
add esp, 0x10
test eax, eax
jle 0x431a59
mov eax, dword [esp + 0x78]
mov ecx, 1
cmp eax, ecx
jne 0x4318a2
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4318a2
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4318a2
cmp dword [esp + 0x3c], ecx
jne 0x4318a2
cmp eax, esi
jae 0x4318a2
cmp eax, dword [esp + 0x4c]
jne 0x4318a2
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp ecx, eax
ja 0x43183b
jb 0x431835
cmp dword [esp + 0x20], ebp
jae 0x43183b
mov ebx, dword [esp + 0x20]
jmp 0x43183d
mov ebx, ebp
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push 0
mov esi, dword [eax + 0x8c]
push esi
push ecx
push edx
call fcn.0053f870
mov edi, dword [esp + 0x4c]
push edx
imul esi, edi
push eax
mov eax, dword [esp + 0x30]
push ebp
push eax
push esi
mov esi, dword [esp + 0x64]
push esi
call fcn.004308c0
add esp, 0x18
cmp eax, ebx
jae 0x4318ba
mov edx, dword [esp + 0x34]
xor ecx, ecx
mov eax, dword [edx + 0x8c]
imul eax, edi
test eax, eax
jbe 0x431898
cmp byte [ecx + esi], 0
jne 0x431898
inc ecx
cmp ecx, eax
jb 0x43188d
cmp ecx, eax
jb 0x431a18
jmp 0x4318ba
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x290]
mov ebx, dword [esp + 0x28]
test eax, eax
je 0x431968
mov edi, dword [eax + 0xa0]
mov esi, dword [eax + 0xa4]
mov ecx, edi
and ecx, esi
cmp ecx, 0xffffffff
je 0x431968
cmp dword [esp + 0x30], esi
jb 0x43190e
ja 0x4318f4
cmp dword [esp + 0x2c], edi
jb 0x43190e
mov ebp, dword [esp + 0x1c]
xor eax, eax
mov ecx, ebp
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x43196c
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov ecx, ebp
xor edx, edx
add ecx, eax
mov eax, edx
adc eax, dword [esp + 0x30]
cmp eax, esi
jb 0x43196c
ja 0x43192c
cmp ecx, edi
jbe 0x43196c
mov ecx, ebp
mov eax, edx
sub ecx, edi
mov edi, dword [esp + 0x2c]
sbb eax, esi
mov esi, dword [esp + 0x30]
add ecx, edi
adc eax, esi
jne 0x431946
test ecx, ecx
jbe 0x43196c
cmp eax, edx
ja 0x43196c
jb 0x431950
cmp ecx, ebp
jae 0x43196c
mov edi, ebp
xor eax, eax
sub edi, ecx
mov edx, ecx
add edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x43196c
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x94]
test eax, eax
jne 0x431992
mov edi, dword [esp + 0x38]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4319ca
mov ecx, dword [esp + 0x28c]
test ecx, ecx
je 0x4319a7
mov edx, dword [ecx + 0x3ac4]
test edx, edx
jne 0x4319b6
push ebp
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push eax
call fcn.004f5ad0
add esp, 0x14
mov eax, dword [esp + 0x288]
test eax, eax
je 0x4319ca
push 0
push ebp
call dword [eax + 4]
add esp, 8
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
add esi, ebp
add edx, ebp
xor eax, eax
add ecx, ebp
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x24]
adc ebx, eax
sub ecx, ebp
sbb edx, eax
mov dword [esp + 0x20], ecx
or ecx, edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], edx
jne 0x43141c
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x2a0]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x431a34
mov edx, dword [esp]
mov ecx, dword [esp + 4]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x40]
push edx
call fcn.004f5720
mov eax, dword [esp + 0x1c]
push eax
call fcn.004f5720
mov eax, dword [esp + 0x50]
add esp, 0x27c
ret
mov dword [esp + 0x58], ebp
jmp 0x431a18
mov eax, dword [esp + 0x38]
test eax, eax
je 0x431a6e
mov ecx, dword [esp + 0x298]
mov dword [ecx], 0
push eax
call fcn.004f5720
add esp, 4
jmp 0x431a18