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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2a4
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, eax
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov dword [esi + 8], ecx
mov dword [esi], eax
cmp edi, 3
jle 0x453a7a
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
cmp dword [eax + 8], 4
jne 0x453a7a
mov eax, dword [eax]
mov dword [esp + 0x38], eax
jmp 0x453a7e
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], ecx
cmp edi, 2
jle 0x453aa1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
lea ecx, [esp + 0xb0]
call fcn.0045ad10
mov dword [esp + 0x34], eax
xor ecx, ecx
jmp 0x453aa9
mov dword [esp + 0x34], 0x4af9bc
mov dword [esp + 0x28], ecx
mov dword [esi + 4], ecx
cmp edi, 4
jle 0x453ad1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 8], 3
je 0x453ad1
push 0
call fcn.0045abd0
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x453ad9
mov dword [esp + 0x1c], 0xffffffff
mov ecx, dword [ebp + 0x18]
xor edi, edi
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x18], ecx
je 0x453b18
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push edi
push ebx
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push eax
push ecx
call fcn.00497aa0
add esp, 0x20
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
jne 0x453c48
mov eax, dword [ebp + 0x1c]
test edi, edi
je 0x454024
cmp ebx, eax
jge 0x454024
cmp dword [esp + 0x1c], 0
je 0x454024
mov edx, dword [esp + 0x18]
movzx eax, word [edx]
mov ecx, eax
lea edx, [ecx + 0x2800]
mov ebx, 0x3ff
xor edi, edi
cmp dx, bx
ja 0x453ba8
mov edx, dword [esp + 0x18]
movzx edx, word [edx + 2]
mov ebx, 0xdc00
cmp dx, bx
jb 0x453ba8
mov ebx, 0xdfff
cmp dx, bx
ja 0x453ba8
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ebx, dword [esp + 0x18]
mov word [edx + eax*2], cx
mov ecx, 1
add dword [esi + 4], ecx
mov bx, word [ebx + 2]
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov word [edx + eax*2], bx
mov ebx, dword [ebp + 0x20]
add dword [esi + 4], ecx
mov eax, dword [ebp + 0x18]
add ebx, 2
mov dword [ebp + 0x20], ebx
lea ecx, [eax + ebx*2]
jmp 0x453ade
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov ebx, dword [ebp + 0x20]
mov word [edx + ecx*2], ax
inc dword [esi + 4]
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 4]
inc ebx
cmp word [eax], 0xd
mov dword [ebp + 0x20], ebx
jne 0x454019
cmp word [eax + 2], 0xa
jne 0x454019
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x454019
mov eax, dword [ecx]
cmp eax, 0x50435245
je 0x453c30
sub eax, 0x45524350
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0xffffffe3
test eax, eax
jne 0x454019
mov eax, dword [esp + 0x4c]
test eax, 0x400000
je 0x454019
mov eax, dword [esi + 0xc]
mov ecx, 0xa
mov word [eax + edx*2], cx
inc dword [esi + 4]
mov eax, dword [ebp + 0x18]
inc ebx
mov dword [ebp + 0x20], ebx
lea ecx, [eax + ebx*2]
jmp 0x453ade
test byte [ecx + 0xc], 2
je 0x454019
mov eax, dword [ecx + 8]
and eax, 0x27fc7a7f
mov dword [esp + 0x4c], eax
jmp 0x453c07
test eax, eax
js 0x4540a3
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, 1
add dword [esp + 0x24], eax
sub dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x24]
mov edi, dword [eax]
mov edx, dword [eax + 4]
add edi, edi
sub edi, dword [esp + 0x18]
mov dword [esp + 0x44], edx
add edi, dword [ebp + 0x18]
mov dword [esp + 0x20], 0
sar edi, 1
mov dword [esp + 0x40], edi
jmp 0x453c94
mov edi, dword [esp + 0x40]
cmp dword [esp + 0x20], 0
je 0x453d28
lea eax, [ebx + 3]
cmp eax, dword [esp + 0x28]
jle 0x453cf7
mov edx, dword [esp + 0x44]
mov eax, dword [ebp + 0x1c]
push edx
lea ecx, [ebx + 2]
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, ebx
sub eax, edx
push ecx
mov ecx, dword [esp + 0x34]
cdq
idiv ecx
push ecx
mov edi, eax
call fcn.00480310
lea edx, [eax + eax]
add esp, 0x14
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xc]
push edx
push eax
call fcn.004999a7
add esp, 8
test eax, eax
je 0x4540ec
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
mov dword [esi + 0xc], eax
test edi, edi
je 0x453d19
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 4]
lea ecx, [edi + edi]
push ecx
mov ecx, dword [esi + 0xc]
push edx
lea edx, [ecx + eax*2]
push edx
call fcn.004a37d0
add esp, 0xc
add dword [esi + 4], edi
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
lea ecx, [ecx + eax*2]
mov dword [esp + 0x10], ecx
jmp 0x453d31
mov ebx, dword [esi + 4]
add ebx, edi
mov dword [esp + 0x14], ebx
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x20], 0
movzx eax, word [edi]
mov edx, edi
je 0x453d6c
test ax, ax
je 0x453d61
cmp ax, 0x24
je 0x453d5d
add edi, 2
mov word [ecx], ax
movzx eax, word [edi]
add ecx, 2
test ax, ax
jne 0x453d46
mov dword [esp + 0x10], ecx
mov eax, edi
sub eax, edx
sar eax, 1
add dword [esi + 4], eax
jmp 0x453d8f
test ax, ax
je 0x453d83
cmp ax, 0x24
je 0x453d83
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x453d71
mov eax, edi
sub eax, edx
sar eax, 1
add ebx, eax
mov dword [esp + 0x14], ebx
cmp word [edi], 0
je 0x453fe8
movzx eax, word [edi + 2]
xor ebx, ebx
mov dword [esp + 0x48], ebx
cmp ax, bx
je 0x453de9
mov esi, eax
test esi, 0xffffff80
jne 0x453dc7
push 2
push esi
call fcn.0049b39c
add esp, 8
test eax, eax
je 0x453dc7
and esi, 0xffdf
mov eax, esi
movzx ecx, ax
cmp ecx, 0x4c
je 0x453dd9
add ecx, 0xffffffac
cmp ecx, 1
ja 0x453de9
movzx ecx, ax
movzx eax, word [edi + 4]
mov dword [esp + 0x48], ecx
mov ebx, 1
movzx ecx, ax
mov esi, 0x80000000
test ecx, ecx
je 0x453e1f
cmp ecx, 0x24
je 0x453edf
cmp ecx, 0x7b
je 0x453e53
add eax, 0xffffffd0
cmp ax, 9
ja 0x453e1f
lea esi, [ecx - 0x30]
lea edi, [edi + ebx*2 + 2]
cmp esi, 0x80000000
jne 0x453efe
cmp dword [esp + 0x20], 0
je 0x453ee7
mov cx, word [edi]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov word [eax], cx
add eax, 2
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
inc dword [eax + 4]
mov ecx, dword [esp + 0x10]
add edi, 2
mov esi, eax
jmp 0x453d35
lea eax, [edi + ebx*2 + 4]
push 0x7d
push eax
mov dword [esp + 0x34], eax
call fcn.0049a399
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
je 0x453e1f
mov ebx, eax
sub ebx, dword [esp + 0x2c]
sar ebx, 1
je 0x453e1f
cmp ebx, 0x21
jae 0x453ed6
mov edx, dword [esp + 0x2c]
push ebx
push edx
lea eax, [esp + 0x70]
push eax
call fcn.0049cae4
add esp, 0xc
xor ecx, ecx
push ecx
push 1
push ecx
push 1
lea eax, [esp + 0x78]
mov word [esp + ebx*2 + 0x78], cx
call fcn.0047f5d0
add esp, 0x10
test eax, eax
je 0x453ec5
lea edx, [esp + 0x68]
push edx
call fcn.004998ad
mov edi, dword [esp + 0x40]
add esp, 4
mov esi, eax
jmp 0x453e13
mov edi, dword [ebp + 0x24]
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x68]
call fcn.00498b10
mov esi, eax
mov edi, dword [esp + 0x3c]
jmp 0x453e13
add edi, 2
jmp 0x453e1f
inc dword [esp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add edi, 2
jmp 0x453d35
test esi, esi
js 0x453fd5
cmp esi, dword [esp + 0x30]
jge 0x453fd5
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx + esi*8]
mov esi, dword [ecx + esi*8 + 4]
sub esi, eax
je 0x453fd5
cmp dword [esp + 0x20], 0
je 0x453fd1
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x10]
lea ebx, [esi + esi]
push ebx
lea eax, [edx + eax*2]
push eax
push ecx
call fcn.004a37d0
mov eax, dword [esp + 0x54]
add esp, 0xc
test ax, ax
je 0x453fb5
mov ecx, dword [esp + 0x10]
movzx eax, ax
xor edx, edx
sub eax, 0x4c
mov word [ecx + ebx], dx
je 0x453fae
sub eax, 8
je 0x453f8b
dec eax
jne 0x453fb5
push ecx
call dword [0x4ad690]
add dword [esp + 0x10], ebx
mov eax, dword [ebp + 8]
add dword [eax + 4], esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add edi, 2
mov esi, eax
jmp 0x453d35
mov eax, ecx
call fcn.0041a170
add dword [esp + 0x10], ebx
mov eax, dword [ebp + 8]
add dword [eax + 4], esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add edi, 2
mov esi, eax
jmp 0x453d35
push ecx
call dword [0x4ad5c8]
add dword [esp + 0x10], ebx
mov eax, dword [ebp + 8]
add dword [eax + 4], esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add edi, 2
mov esi, eax
jmp 0x453d35
add dword [esp + 0x14], esi
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add edi, 2
jmp 0x453d35
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, 2
jl 0x453c90
mov eax, dword [ebp + 0x24]
mov edi, dword [eax]
sub edi, dword [eax + 4]
mov ebx, dword [esp + 0x44]
neg edi
sbb edi, edi
and edi, 0xfffffbf0
add edi, 0x410
mov dword [ebp + 0x20], ebx
mov eax, dword [ebp + 0x18]
lea ecx, [eax + ebx*2]
jmp 0x453ade
cmp dword [esp + 0x24], 0
je 0x454087
sub eax, ebx
mov ebx, eax
je 0x454076
mov edi, dword [esi + 4]
add edi, ebx
cmp edi, dword [esp + 0x28]
jl 0x454058
mov eax, dword [esi + 0xc]
lea edx, [edi + edi + 2]
push edx
push eax
call fcn.004999a7
add esp, 8
test eax, eax
je 0x4540ec
mov dword [esi + 0xc], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 4]
lea ecx, [ebx + ebx]
push ecx
mov ecx, dword [esi + 0xc]
push edx
lea edx, [ecx + eax*2]
push edx
call fcn.004a37d0
add esp, 0xc
mov dword [esi + 4], edi
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esi + 0xc]
mov dword [esi], eax
mov ecx, dword [0x4d9ea8]
push 1
push 0
push 0xffffffffffffffff
push 0x4af9cc
push ecx
call fcn.00482b00
jmp 0x45414e
mov edx, dword [0x4d5b14]
test byte [edx + 0x100], 1
je 0x4540de
mov ecx, dword [esp + 0x30]
push 0xa
lea eax, [esp + 0x54]
push eax
push ecx
call fcn.00499185
mov ebx, dword [0x4dacf4]
add esp, 0xc
push 0x4af9bc
push str.RegExReplace
push eax
call fcn.00439c30
jmp 0x45414e
mov edx, dword [0x4d9ea8]
push edx
call fcn.00404070
jmp 0x45414e
mov eax, dword [0x4d5b14]
test byte [eax + 0x100], 1
jne 0x45410d
mov ecx, dword [0x4d9ea8]
push ecx
mov eax, 0xfffffffa
call fcn.00404070
jmp 0x454137
push 0xa
lea edx, [esp + 0x54]
push edx
push 0xfffffffffffffffa
call fcn.00499185
mov ebx, dword [0x4dacf4]
add esp, 0xc
push 0x4af9bc
push str.RegExReplace
push eax
call fcn.00439c30
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x45414e
push eax
call fcn.0049996d
add esp, 4
mov dword [esi + 0xc], 0
mov esi, dword [esp + 0x38]
test esi, esi
je 0x4541c2
cmp byte [esi + 0x17], 0
jne 0x45415f
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x454175
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
cdq
mov dword [esi], eax
mov al, byte [esi + 0x15]
and al, 0x9b
or al, 0x18
mov dword [esi + 4], edx
mov byte [esi + 0x15], al
jns 0x45419d
mov eax, esi
call fcn.004011c0
and byte [esi + 0x15], 0x8f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x4d9804], 0
je 0x4541aa
test al, 0x10
jne 0x4541b7
cmp dword [0x4d9808], 0
je 0x4541c2
test al, 0x20
je 0x4541c2
test al, 8
je 0x4541c2
mov eax, esi
call fcn.004011c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret